mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
23824: merge in git rerere completion from Nikolai Weibull's repository.
This commit is contained in:
parent
e16f52a1e7
commit
55c6f279ff
2 changed files with 17 additions and 1 deletions
|
@ -1,5 +1,8 @@
|
||||||
2007-09-23 Clint Adams <clint@zsh.org>
|
2007-09-23 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
|
* 23824: Completion/Unix/Command/_git: merge in git rerere
|
||||||
|
completion from Nikolai Weibull's repository.
|
||||||
|
|
||||||
* 23823: Completion/Unix/Command/_git: merge in git rev-parse
|
* 23823: Completion/Unix/Command/_git: merge in git rev-parse
|
||||||
completion from Nikolai Weibull's repository.
|
completion from Nikolai Weibull's repository.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#compdef git git-annotate git-apply git-checkout-index git-clean git-commit-tree git-describe git-hash-object git-index-pack git-init-db git-instaweb git-merge-index git-merge-tree git-mktag git-mktree git-pack-objects git-prune-packed git-read-tree git-remote git-rev-parse git-unpack-objects git-update-index git-write-tree git-cat-file git-diff-index git-diff-files git-diff-stages git-diff-tree git-fsck-objects git-ls-files git-ls-tree git-quiltimport git-merge-base git-name-rev git-rev-list git-show-index git-tar-tree git-unpack-file git-var git-verify-pack git-clone-pack git-fetch-pack git-http-fetch git-local-fetch git-peek-remote git-receive-pack git-send-pack git-ssh-fetch git-ssh-upload git-update-server-info git-upload-pack git-add git-am git-applymbox git-bisect git-branch git-checkout git-cherry-pick git-clone git-commit git-diff git-fetch git-format-patch git-grep git-log git-ls-remote git-merge git-mv git-octopus git-pull git-push git-rebase git-repack git-reset git-resolve git-revert git-shortlog git-show-branch git-status git-verify-tag git-whatchanged git-applypatch git-archimport git-archive git-convert-objects git-cvsimport git-lost-found git-merge-one-file git-prune git-relink git-svnimport git-symbolic-ref git-tag git-update-ref git-check-ref-format git-cherry git-count-objects git-daemon git-get-tar-commit-id git-mailinfo git-mailsplit git-patch-id git-request-pull git-rm git-send-email git-stripspace
|
#compdef git git-annotate git-apply git-checkout-index git-clean git-commit-tree git-describe git-hash-object git-index-pack git-init-db git-instaweb git-merge-index git-merge-tree git-mktag git-mktree git-pack-objects git-prune-packed git-read-tree git-remote git-rev-parse git-unpack-objects git-update-index git-write-tree git-cat-file git-diff-index git-diff-files git-diff-stages git-diff-tree git-fsck-objects git-ls-files git-ls-tree git-quiltimport git-merge-base git-name-rev git-rev-list git-show-index git-tar-tree git-unpack-file git-var git-verify-pack git-clone-pack git-fetch-pack git-http-fetch git-local-fetch git-peek-remote git-receive-pack git-send-pack git-ssh-fetch git-ssh-upload git-update-server-info git-upload-pack git-add git-am git-applymbox git-bisect git-branch git-checkout git-cherry-pick git-clone git-commit git-diff git-fetch git-format-patch git-grep git-log git-ls-remote git-merge git-mv git-octopus git-pull git-push git-rebase git-repack git-rerere git-reset git-resolve git-revert git-shortlog git-show-branch git-status git-verify-tag git-whatchanged git-applypatch git-archimport git-archive git-convert-objects git-cvsimport git-lost-found git-merge-one-file git-prune git-relink git-svnimport git-symbolic-ref git-tag git-update-ref git-check-ref-format git-cherry git-count-objects git-daemon git-get-tar-commit-id git-mailinfo git-mailsplit git-patch-id git-request-pull git-rm git-send-email git-stripspace
|
||||||
|
|
||||||
# Commands not completed:
|
# Commands not completed:
|
||||||
# git-sh-setup
|
# git-sh-setup
|
||||||
|
@ -176,6 +176,7 @@ _git_commands () {
|
||||||
'remote:manage set of tracked repositories'
|
'remote:manage set of tracked repositories'
|
||||||
'repack:packs unpacked objects in a repository'
|
'repack:packs unpacked objects in a repository'
|
||||||
'request-pull:generates a summary of pending changes'
|
'request-pull:generates a summary of pending changes'
|
||||||
|
'rerere:reuse recorded resolve'
|
||||||
'reset:resets current HEAD to the specified state'
|
'reset:resets current HEAD to the specified state'
|
||||||
'resolve:merges two commits'
|
'resolve:merges two commits'
|
||||||
'rev-list:lists commit object in reverse chronological order'
|
'rev-list:lists commit object in reverse chronological order'
|
||||||
|
@ -1139,6 +1140,18 @@ _git-repack () {
|
||||||
'-n[do not update server information]' && ret=0
|
'-n[do not update server information]' && ret=0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_git-rerere () {
|
||||||
|
declare -a commands
|
||||||
|
|
||||||
|
commands=(
|
||||||
|
'clear:reset the metadata used by rerere'
|
||||||
|
'diff:output diffs for the current state of the resolution'
|
||||||
|
'status:like diff, but only output filesames'
|
||||||
|
'gc:prune old records of conflicted merges')
|
||||||
|
|
||||||
|
_describe -t commands 'command' commands
|
||||||
|
}
|
||||||
|
|
||||||
_git-reset () {
|
_git-reset () {
|
||||||
_arguments \
|
_arguments \
|
||||||
'( --soft --hard)--mixed[like --soft but report what has not been updated (default)]' \
|
'( --soft --hard)--mixed[like --soft but report what has not been updated (default)]' \
|
||||||
|
|
Loading…
Reference in a new issue