mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
25462: patch to add some -s -w to _arguments and new options for revert, from Mikael Magnusson.
This commit is contained in:
parent
f413d1f4d9
commit
9a9759e340
2 changed files with 8 additions and 4 deletions
|
@ -1,5 +1,8 @@
|
|||
2008-08-16 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 25462: Completion/Unix/Command/_git: patch to add some -s -w
|
||||
to _arguments and new options for revert, from Mikael Magnusson.
|
||||
|
||||
* 25461: Completion/Unix/Command/_git: patch to add HEAD as
|
||||
a completion for heads, from Mikael Magnusson.
|
||||
|
||||
|
|
|
@ -1818,7 +1818,7 @@ _git-rebase () {
|
|||
|
||||
(( $+functions[_git-repack] )) ||
|
||||
_git-repack () {
|
||||
_arguments \
|
||||
_arguments -s -w \
|
||||
'-a[pack all objects into a single pack]' \
|
||||
'-d[remove redundant packs after packing]' \
|
||||
'-f[pass "--no-reuse-delta" option to "git pack-objects"]' \
|
||||
|
@ -1863,9 +1863,10 @@ _git-reset () {
|
|||
|
||||
(( $+functions[_git-revert] )) ||
|
||||
_git-revert () {
|
||||
_arguments \
|
||||
'(-e --edit --no-edit)'{-e,--edit}'[edit the commit before committing the revert]' \
|
||||
'(-e --edit --no-edit)--no-edit[do not start the commit message editor]' \
|
||||
_arguments -s -w \
|
||||
'(-e --edit)'{-e,--edit}'[edit the commit before committing the revert]' \
|
||||
'-x[append commit name when cherry-picking]' \
|
||||
'(-m --mainline)'{-m+,--mainline=}'[pick which parent is mainline]:parent number' \
|
||||
'(-n --no-commit)'{-n,--no-commit}'[do not commit the reversion]' \
|
||||
':commit:__git_commits' && ret=0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue