Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] git completion: minor improvements
- X-seq: zsh-workers 34444
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] git completion: minor improvements
- Date: Sun, 1 Feb 2015 11:45:29 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=x-sasl-enc:date:from:to:subject:message-id :mime-version:content-type; s=mesmtp; bh=i8FOerFfvUIPQq1bcB32svf smfA=; b=XtHFpz2dubq0OaEyvryf1TTYnR4Gh80QJMF4uMAk+CgmOlmttKZCyvK IWb0quyxuHz4RibKIpNbX/mO6pv+7+lyOIP292K6Jxi8rFMX6MyBZB9F9EX0BhJl XtJQmaAPDLWqX6Bu2X4Ei4Su/F6SB/KYqkWNH3ggAleVh9G+kW5A=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:subject :message-id:mime-version:content-type; s=smtpout; bh=i8FOerFfvUI PQq1bcB32svfsmfA=; b=lTJUhwSdLWv2lS4cZMOA1tis1vrP3xDvv8cD9p3QMip KGIRYc40bx6CAf9u84XBgGUk/mhH/TNSR7L9ErZeonNp+ZThRsOB35/uTJCrvaL0 s+ixD5RHqIUkoP9OE7qQA6FwDuwXSlBSV9GNLB6CHpGIJE93jI0YTb+SBWOuuOsc =
- 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
- 'git rebase': complete arguments in the same word as the option
- 'git commit': provide message for --fixup/--squash
---
Since this isn't a destabilizing change, I'll go ahead and push this
myself later this week unless I hear otherwise.
Daniel
Completion/Unix/Command/_git | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index afdd281..9a78bf4 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -651,8 +651,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]:' \
+ '--fixup=[construct a commit message for use with rebase --autosquash]:commit to be amended:' \
+ '--squash=[construct a commit message for use with rebase --autosquash]:commit to be amended:' \
$reset_author_opt \
'( --porcelain --dry-run)--short[output dry run in short format]' \
'(--short --dry-run)--porcelain[output dry run in porcelain-ready format]' \
@@ -1339,13 +1339,13 @@ _git-rebase () {
'(-i --interactive --ignore-whitespace --whitespace --committer-date-is-author-date)'{-i,--interactive}'[make a list of commits to be rebased and open in $EDITOR]' \
'--edit-todo[edit interactive instruction sheet in an editor]' \
'(-p --preserve-merges --interactive)'{-p,--preserve-merges}'[try to recreate merges instead of ignoring them]' \
- {-x,--exec}'[with -i\: append "exec <cmd>" after each line]:command' \
+ {-x,--exec=}'[with -i\: append "exec <cmd>" after each line]:command' \
'(1)--root[rebase all reachable commits]' \
$autosquash_opts \
'(--autostash --no-autostash)--autostash[stash uncommitted changes before rebasing and apply them afterwards]' \
'(--autostash --no-autostash)--no-autostash[do not stash uncommitted changes before rebasing and apply them afterwards]' \
'--no-ff[cherry-pick all rebased commits with --interactive, otherwise synonymous to --force-rebase]' \
- '--onto[start new branch with HEAD equal to given revision]:newbase:__git_revisions' \
+ '--onto=[start new branch with HEAD equal to given revision]:newbase:__git_revisions' \
':upstream branch:__git_revisions' \
'::working branch:__git_branch_names'
}
--
1.9.1
Messages sorted by:
Reverse Date,
Date,
Thread,
Author