aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2007-12-15 06:11:54 -0500
committerJunio C Hamano <gitster@pobox.com>2007-12-16 11:55:48 -0800
commit718a087a47cc148f74027a3a26d71994ff71bdd8 (patch)
treed539ed330fdac8fdc74f335e400d4c91c310d36f /contrib
parent52499977350b95ba7166e5c835b09cdbc20a3d02 (diff)
downloadgit-718a087a47cc148f74027a3a26d71994ff71bdd8.tar.gz
git-718a087a47cc148f74027a3a26d71994ff71bdd8.tar.xz
teach bash completion to treat commands with "--" as a helper
There is a convention that commands containing a double-dash are implementation details and not to be used by mortals. We should automatically remove them from the completion suggestions as such. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/completion/git-completion.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 58e0e53cd..343364de0 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -291,7 +291,7 @@ __git_commands ()
for i in $(git help -a|egrep '^ ')
do
case $i in
- add--interactive) : plumbing;;
+ *--*) : helper pattern;;
applymbox) : ask gittus;;
applypatch) : ask gittus;;
archimport) : import;;
@@ -308,7 +308,6 @@ __git_commands ()
diff-tree) : plumbing;;
fast-import) : import;;
fsck-objects) : plumbing;;
- fetch--tool) : plumbing;;
fetch-pack) : plumbing;;
fmt-merge-msg) : plumbing;;
for-each-ref) : plumbing;;