Skip to content

Commit

Permalink
bash-completion: Add non-command git help files to bash-completion
Browse files Browse the repository at this point in the history
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 <marcus@griep.us>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Marcus Griep authored and Junio C Hamano committed Aug 16, 2008
1 parent 8134a00 commit 2946ccc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion contrib/completion/git-completion.bash
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,11 @@ _git_help ()
return
;;
esac
__gitcomp "$(__git_all_commands)"
__gitcomp "$(__git_all_commands)
attributes cli core-tutorial cvs-migration
diffcore gitk glossary hooks ignore modules
repository-layout tutorial tutorial-2
"
}

_git_init ()
Expand Down

0 comments on commit 2946ccc

Please sign in to comment.