File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -398,6 +398,20 @@ _git_cherry_pick ()
398
398
esac
399
399
}
400
400
401
+ _git_commit ()
402
+ {
403
+ local cur=" ${COMP_WORDS[COMP_CWORD]} "
404
+ case " $cur " in
405
+ --* )
406
+ COMPREPLY=($( compgen -W "
407
+ --all --author= --signoff --verify --no-verify
408
+ --edit --amend --include --only
409
+ " -- " $cur " ) )
410
+ return
411
+ esac
412
+ COMPREPLY=()
413
+ }
414
+
401
415
_git_diff ()
402
416
{
403
417
__git_complete_file
@@ -768,6 +782,7 @@ _git ()
768
782
cat-file) _git_cat_file ;;
769
783
checkout) _git_checkout ;;
770
784
cherry-pick) _git_cherry_pick ;;
785
+ commit) _git_commit ;;
771
786
diff) _git_diff ;;
772
787
diff-tree) _git_diff_tree ;;
773
788
fetch) _git_fetch ;;
@@ -804,6 +819,7 @@ complete -o default -F _git_branch git-branch
804
819
complete -o default -o nospace -F _git_cat_file git-cat-file
805
820
complete -o default -F _git_checkout git-checkout
806
821
complete -o default -F _git_cherry_pick git-cherry-pick
822
+ complete -o default -F _git_commit git-commit
807
823
complete -o default -o nospace -F _git_diff git-diff
808
824
complete -o default -F _git_diff_tree git-diff-tree
809
825
complete -o default -o nospace -F _git_fetch git-fetch
You can’t perform that action at this time.
0 commit comments