summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4f8f03d)
raw | patch | inline | side by side (parent: 4f8f03d)
author | Junio C Hamano <gitster@pobox.com> | |
Fri, 3 Aug 2007 09:04:37 +0000 (02:04 -0700) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 4 Aug 2007 07:14:28 +0000 (03:14 -0400) |
This is a new addition to 1.5.3; let's teach it to the
completion before the final release.
[sp: Added missing git-stash completion configuration]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
completion before the final release.
[sp: Added missing git-stash completion configuration]
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
contrib/completion/git-completion.bash | patch | blob | history |
index f2b10fa5f67942dc1c8d9d4f16048a6e7e976084..82b9ed40d84dbb72c72e282392ca8eb247ab527e 100755 (executable)
__git_complete_file
}
+_git_stash ()
+{
+ __gitcomp 'list show apply clear'
+}
+
_git ()
{
local i c=1 command __git_dir
shortlog) _git_shortlog ;;
show) _git_show ;;
show-branch) _git_log ;;
+ stash) _git_stash ;;
whatchanged) _git_log ;;
*) COMPREPLY=() ;;
esac
complete -o default -o nospace -F _git_reset git-reset
complete -o default -o nospace -F _git_shortlog git-shortlog
complete -o default -o nospace -F _git_show git-show
+complete -o default -o nospace -F _git_stash git-stash
complete -o default -o nospace -F _git_log git-show-branch
complete -o default -o nospace -F _git_log git-whatchanged