summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0864e3b)
raw | patch | inline | side by side (parent: 0864e3b)
author | Shawn O. Pearce <spearce@spearce.org> | |
Tue, 28 Nov 2006 17:12:08 +0000 (12:12 -0500) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 28 Nov 2006 23:48:52 +0000 (15:48 -0800) |
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
contrib/completion/git-completion.bash | patch | blob | history |
index d8ae4d7886d77328a0ec4d09663e33c202f9b8fe..be978cf3d3d5f4368a882596ed152f94f6affb32 100755 (executable)
esac
}
+_git_commit ()
+{
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ case "$cur" in
+ --*)
+ COMPREPLY=($(compgen -W "
+ --all --author= --signoff --verify --no-verify
+ --edit --amend --include --only
+ " -- "$cur"))
+ return
+ esac
+ COMPREPLY=()
+}
+
_git_diff ()
{
__git_complete_file
cat-file) _git_cat_file ;;
checkout) _git_checkout ;;
cherry-pick) _git_cherry_pick ;;
+ commit) _git_commit ;;
diff) _git_diff ;;
diff-tree) _git_diff_tree ;;
fetch) _git_fetch ;;
complete -o default -o nospace -F _git_cat_file git-cat-file
complete -o default -F _git_checkout git-checkout
complete -o default -F _git_cherry_pick git-cherry-pick
+complete -o default -F _git_commit git-commit
complete -o default -o nospace -F _git_diff git-diff
complete -o default -F _git_diff_tree git-diff-tree
complete -o default -o nospace -F _git_fetch git-fetch