git-completion: Add git help completion for aliases
Enable bash completion for "git help <alias>", analogous to "git <alias>", which was already implemented. Signed-off-by: Jakob Pfender <jpfender@elegosoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jakob Pfender committed
Mar 21, 2011 at 10:25 UTC
f85a6f0bbba92f4a671189fec8fec3af773736ca
1 file changed
+1
-1
contrib/completion/git-completion.bash
+1
-1
@@ -1508,7 +1508,7 @@ _git_help ()
1508
;;
1509
esac
1510
__git_compute_all_commands
1511
- __gitcomp "$__git_all_commands
1511
+ __gitcomp "$__git_all_commands $(__git_aliases)
1512
attributes cli core-tutorial cvs-migration
1513
diffcore gitk glossary hooks ignore modules
1514
repository-layout tutorial tutorial-2