Merge branch 'sg/complete-untracked-filter'
authorJonathan Nieder <jrnieder@gmail.com>
Wed, 25 Sep 2013 06:27:44 +0000 (23:27 -0700)
committerJonathan Nieder <jrnieder@gmail.com>
Wed, 25 Sep 2013 06:27:44 +0000 (23:27 -0700)
* sg/complete-untracked-filter:
completion: improve untracked directory filtering for filename completion

contrib/completion/git-completion.bash
index e1b73130723a57e7f641236331699e67bb0d4d82..86f77345fdd7ed24d8c76ac33900ff65bdaa32fa 100644 (file)
@@ -901,7 +901,7 @@ _git_add ()
        esac
 
        # XXX should we check for --update and --all options ?
-       __git_complete_index_file "--others --modified"
+       __git_complete_index_file "--others --modified --directory --no-empty-directory"
 }
 
 _git_archive ()
@@ -1063,7 +1063,7 @@ _git_clean ()
        esac
 
        # XXX should we check for -x option ?
-       __git_complete_index_file "--others"
+       __git_complete_index_file "--others --directory"
 }
 
 _git_clone ()