Skip to content

Commit 2946ccc

Browse files
neoeinsteingitster
authored andcommitted
bash-completion: Add non-command git help files to bash-completion
Git allows access to the gitattributes man page via `git help attributes`, but this is not discoverable via the bash-completion mechanism. This patch adds all current non-command man pages to the completion candidate list. Signed-off-by: Marcus Griep <[email protected]> Acked-by: Shawn O. Pearce <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8134a00 commit 2946ccc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,11 @@ _git_help ()
885885
return
886886
;;
887887
esac
888-
__gitcomp "$(__git_all_commands)"
888+
__gitcomp "$(__git_all_commands)
889+
attributes cli core-tutorial cvs-migration
890+
diffcore gitk glossary hooks ignore modules
891+
repository-layout tutorial tutorial-2
892+
"
889893
}
890894

891895
_git_init ()

0 commit comments

Comments
 (0)