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>
Jeff King committed
Dec 15, 2007 at 06:11 UTC
718a087a47cc148f74027a3a26d71994ff71bdd8
1 file changed
+1
-2
contrib/completion/git-completion.bash
+1
-2
@@ -291,7 +291,7 @@ __git_commands ()
291
for i in $(git help -a|egrep '^ ')
292
do
293
case $i in
294
- add--interactive) : plumbing;;
294
+ *--*) : helper pattern;;
295
applymbox) : ask gittus;;
296
applypatch) : ask gittus;;
297
archimport) : import;;
@@ -308,7 +308,6 @@ __git_commands ()
308
diff-tree) : plumbing;;
309
fast-import) : import;;
310
fsck-objects) : plumbing;;
311
- fetch--tool) : plumbing;;
311
fetch-pack) : plumbing;;
312
fmt-merge-msg) : plumbing;;
313
for-each-ref) : plumbing;;