mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 22:11:54 +02:00
31856: _git: fix a few "undocumented" options
commit: '--null' is documented relink: '-h,--help' are never documented for subcommands but always exist verify-tag: '-v,--verbose' are documented with updated description diff: '--cumulative' is deprecated -> remove
This commit is contained in:
parent
07ca60acf4
commit
2c1affc6c1
2 changed files with 7 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-21 m0viefreak <m0viefreak.cm@googlemail.com>
|
||||||
|
|
||||||
|
* 31856: Completion/Unix/Command/_git: _git: fix a few
|
||||||
|
"undocumented" options
|
||||||
|
|
||||||
2013-10-21 Øystein Walle <oystwa@gmail.com>
|
2013-10-21 Øystein Walle <oystwa@gmail.com>
|
||||||
|
|
||||||
* 31858: Completion/Unix/Command/_git: _git: fix wrong default
|
* 31858: Completion/Unix/Command/_git: _git: fix wrong default
|
||||||
|
|
|
@ -624,7 +624,6 @@ _git-commit () {
|
||||||
reset_author_opt='(--author)--reset-author[make committer the author of the commit]'
|
reset_author_opt='(--author)--reset-author[make committer the author of the commit]'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: --null is an undocumented alias.
|
|
||||||
# TODO: --interactive isn’t explicitly listed in the documentation.
|
# TODO: --interactive isn’t explicitly listed in the documentation.
|
||||||
_arguments -w -S -s \
|
_arguments -w -S -s \
|
||||||
'(-a --all --interactive -o --only -i --include *)'{-a,--all}'[stage all modified and deleted paths]' \
|
'(-a --all --interactive -o --only -i --include *)'{-a,--all}'[stage all modified and deleted paths]' \
|
||||||
|
@ -2978,10 +2977,9 @@ _git-reflog () {
|
||||||
|
|
||||||
(( $+functions[_git-relink] )) ||
|
(( $+functions[_git-relink] )) ||
|
||||||
_git-relink () {
|
_git-relink () {
|
||||||
# TODO: --help is undocumented.
|
|
||||||
_arguments \
|
_arguments \
|
||||||
'--safe[stop if two objects with the same hash exist but have different sizes]' \
|
'--safe[stop if two objects with the same hash exist but have different sizes]' \
|
||||||
'--help[display help]' \
|
'(-)'{-h,--help}'[display usage information]' \
|
||||||
': :_directories' \
|
': :_directories' \
|
||||||
': :_directories' \
|
': :_directories' \
|
||||||
'*: :_directories'
|
'*: :_directories'
|
||||||
|
@ -3419,9 +3417,8 @@ _git-show-branch () {
|
||||||
|
|
||||||
(( $+functions[_git-verify-tag] )) ||
|
(( $+functions[_git-verify-tag] )) ||
|
||||||
_git-verify-tag () {
|
_git-verify-tag () {
|
||||||
# TODO: -v and --verbose are undocumented.
|
|
||||||
_arguments -w -S -s \
|
_arguments -w -S -s \
|
||||||
'(-v --verbose)'{-v,--verbose}'[output additional information]' \
|
'(-v --verbose)'{-v,--verbose}'[print the contents of the tag object before validating it]' \
|
||||||
'*: :__git_tags'
|
'*: :__git_tags'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5960,8 +5957,6 @@ __git_setup_diff_options () {
|
||||||
'(-0 -1 -2 -3 --base --ours --theirs -c --cc --no-index)-0[omit diff output for unmerged entries]'
|
'(-0 -1 -2 -3 --base --ours --theirs -c --cc --no-index)-0[omit diff output for unmerged entries]'
|
||||||
'(-0 -1 -2 -3 --base --ours --theirs -c --cc --no-index)'{-c,--cc}'[compare "our branch", "their branch" and working tree files]'
|
'(-0 -1 -2 -3 --base --ours --theirs -c --cc --no-index)'{-c,--cc}'[compare "our branch", "their branch" and working tree files]'
|
||||||
|
|
||||||
# TODO: --cumulative is undocumented.
|
|
||||||
'--cumulative[undocumented]'
|
|
||||||
# TODO: --output is undocumented.
|
# TODO: --output is undocumented.
|
||||||
'--output[undocumented]:undocumented')
|
'--output[undocumented]:undocumented')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue