1
0
mirror of https://github.com/git/git.git synced 2024-10-23 01:35:18 +02:00
git/contrib/completion
Marc Khouzam ce45ea6a13 Support for git aliasing for tcsh completion
tcsh users sometimes alias the 'git' command to another name.  In
this case, the user expects to only have to issue a new 'complete'
command using the alias name.

However, the tcsh script currently uses the command typed by the
user to call the appropriate function in git-completion.bash, either
_git() or _gitk().  When using an alias, this technique no longer
works.

This change specifies the real name of the command (either 'git' or
'gitk') as a parameter to the script handling tcsh completion.  This
allows the user to use any alias for the 'git' or 'gitk' commands,
while still getting completion to work.

A check for the presence of ${HOME}/.git-completion.bash is also
added to help the user make use of the script properly.

Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2012-11-27 09:14:53 -08:00
..
git-completion.bash Merge branch 'maint' 2012-09-25 10:25:52 -07:00
git-completion.tcsh Support for git aliasing for tcsh completion 2012-11-27 09:14:53 -08:00
git-prompt.sh Improve the description of GIT_PS1_SHOWUPSTREAM 2012-09-24 12:38:41 -07:00