mirror of
git://git.code.sf.net/p/zsh/code
synced 2026-01-01 20:11:06 +01:00
43974: _git: Always offer -F/-m for git tag
This commit is contained in:
parent
f5c096fea7
commit
35c7b0f9e9
2 changed files with 5 additions and 10 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2018-01-04 dana <dana@dana.is>
|
||||
|
||||
* 43974: Completion/Unix/Command/_git: Always offer -F/-m for
|
||||
`git tag`
|
||||
|
||||
* 43970, 43971: Etc/creating-a-release.txt, NEWS: Document some
|
||||
changes in 5.{4,5,6} not previously mentioned, clarify that
|
||||
process in release instructions
|
||||
|
|
|
|||
|
|
@ -2017,15 +2017,6 @@ _git-subtree () {
|
|||
|
||||
(( $+functions[_git-tag] )) ||
|
||||
_git-tag () {
|
||||
local -a message_opts
|
||||
|
||||
if (( words[(I)-[asu]] )); then
|
||||
message_opts=(
|
||||
'(-m --message -F --file)'{-m+,--message=}'[specify tag message]:message'
|
||||
'(-m --message -F --file)'{-F+,--file=}'[read tag message from given file]:message file:_files'
|
||||
)
|
||||
fi
|
||||
|
||||
_arguments \
|
||||
- creation \
|
||||
'(-a --annotate -s --sign -u --local-user)'{-a,--annotate}'[create an unsigned, annotated tag]' \
|
||||
|
|
@ -2035,7 +2026,8 @@ _git-tag () {
|
|||
'(-f --force)'{-f,--force}'[replace existing tag]' \
|
||||
'--create-reflog[create a reflog]' \
|
||||
'--cleanup=[cleanup message]:mode:((verbatim\:"no cleanup" whitespace\:"remove leading and trailing whitespace" strip\:"remove leading and trailing whitespace and comments"))' \
|
||||
$message_opts \
|
||||
'(-m --message -F --file)'{-F+,--file=}'[read tag message from given file]:message file:_files' \
|
||||
'(-m --message -F --file)'{-m+,--message=}'[specify tag message]:message' \
|
||||
': :__git_tags' \
|
||||
':: :__git_commits' \
|
||||
- deletion \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue