Don't use _git private functions

Use own function instead
This commit is contained in:
Shohei YOSHIDA 2020-04-17 13:45:58 +09:00
parent bc51049d99
commit 7e614ffb9a
1 changed files with 8 additions and 1 deletions

View File

@ -36,9 +36,16 @@
# -------
#
# * Mario Fernandez (https://github.com/sirech)
# * Shohei YOSHIDA (https://github.com/syohex)
#
# ------------------------------------------------------------------------------
__git_wtf_branches() {
local -a branches
branches=(${(f)"$(git for-each-ref --format='%(refname:short)' refs/heads/)"})
_describe 'branch' branches
}
_arguments -w -C -s \
'(--long --short)'{-l,--long}'[include author info and date for each commit]' \
'(--long --short)'{-s,--short}'[do not show commits]' \
@ -47,7 +54,7 @@ _arguments -w -C -s \
'(--key)'{-k,--key}'[show key]' \
'(--relations)'{-r,--relations}'[show relation to features / integration branches]' \
'(--dump-config)--dump-config[print out current configuration and exit]' \
'*: :__git_branch_names'
'*: :__git_wtf_branches'
# Local Variables:
# mode: Shell-Script