Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] _git: add --fixup and --squash options to commit



Signed-off-by: Luka Perkov <luka@xxxxxxxxxxx>
---
 Completion/Unix/Command/_git | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 1448698..a24069a 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -591,6 +591,8 @@ _git-commit () {
   # TODO: --interactive isn’t explicitly listed in the documentation.
   _arguments -w -S -s \
     '(-a --all --interactive -o --only -i --include *)'{-a,--all}'[stage all modified and deleted paths]' \
+    '--fixup=[construct a commit message for use with rebase --autosquash]:' \
+    '--squash=[construct a commit message for use with rebase --autosquash]:' \
     $reset_author_opt \
     '(        --porcelain --dry-run)--short[output dry run in short format]' \
     '(--short             --dry-run)--porcelain[output dry run in porcelain-ready format]' \
-- 
1.8.4



Messages sorted by: Reverse Date, Date, Thread, Author