diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-02-01 11:45:29 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2015-02-02 15:32:59 +0000 |
commit | a5333cc34431ae962265b9b10b8a6071f04c6c50 (patch) | |
tree | 179952b1fe015085ba6583644ef333de7a27d964 /Completion/Unix | |
parent | 3ae6fb965f260eb1aaade68ff9c4d60d4c9c8e79 (diff) | |
download | zsh-a5333cc34431ae962265b9b10b8a6071f04c6c50.tar.gz zsh-a5333cc34431ae962265b9b10b8a6071f04c6c50.tar.xz zsh-a5333cc34431ae962265b9b10b8a6071f04c6c50.zip |
34444: git completion: minor improvements
- 'git rebase': complete arguments in the same word as the option - 'git commit': provide message for --fixup/--squash
Diffstat (limited to 'Completion/Unix')
-rw-r--r-- | Completion/Unix/Command/_git | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index afdd281d2..9a78bf48c 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' } |