git-commit-vandalism/contrib/completion
Junio C Hamano 5047822347 t9902: protect test from stray build artifacts
When you have random build artifacts in your build directory, left
behind by running "make" while on another branch, the "git help -a"
command run by __git_list_all_commands in the completion script that
is being tested does not have a way to know that they are not part
of the subcommands this build will ship.  Such extra subcommands may
come from the user's $PATH.  They will interfere with the tests that
expect a certain prefix to uniquely expand to a known completion.

Instrument the completion script and give it a way for us to tell
what (subset of) subcommands we are going to ship.

Also add a test to "git --help <prefix><TAB>" expansion.  It needs
to show not just commands but some selected documentation pages.

Based on an idea by Jeff King.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2013-01-24 15:08:37 -08:00
..
git-completion.bash t9902: protect test from stray build artifacts 2013-01-24 15:08:37 -08:00
git-completion.tcsh Add file completion to tcsh git completion. 2012-12-11 21:49:25 -08:00
git-completion.zsh completion: add new zsh completion 2012-11-19 10:56:47 -08:00
git-prompt.sh Merge branch 'so/prompt-command' 2012-12-27 16:00:07 -08:00