Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: add --fixup and --squash options to commit
- X-seq: zsh-workers 31708
- From: Luka Perkov <luka@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] _git: add --fixup and --squash options to commit
- Date: Sat, 7 Sep 2013 02:01:03 +0200
- Cc: Luka Perkov <luka@xxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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