Merge pull request #705 from syohex/syohex/99
Don't use _git private functions
This commit is contained in:
commit
e8781a252e
|
@ -36,9 +36,16 @@
|
||||||
# -------
|
# -------
|
||||||
#
|
#
|
||||||
# * Mario Fernandez (https://github.com/sirech)
|
# * 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 \
|
_arguments -w -C -s \
|
||||||
'(--long --short)'{-l,--long}'[include author info and date for each commit]' \
|
'(--long --short)'{-l,--long}'[include author info and date for each commit]' \
|
||||||
'(--long --short)'{-s,--short}'[do not show commits]' \
|
'(--long --short)'{-s,--short}'[do not show commits]' \
|
||||||
|
@ -47,7 +54,7 @@ _arguments -w -C -s \
|
||||||
'(--key)'{-k,--key}'[show key]' \
|
'(--key)'{-k,--key}'[show key]' \
|
||||||
'(--relations)'{-r,--relations}'[show relation to features / integration branches]' \
|
'(--relations)'{-r,--relations}'[show relation to features / integration branches]' \
|
||||||
'(--dump-config)--dump-config[print out current configuration and exit]' \
|
'(--dump-config)--dump-config[print out current configuration and exit]' \
|
||||||
'*: :__git_branch_names'
|
'*: :__git_wtf_branches'
|
||||||
|
|
||||||
# Local Variables:
|
# Local Variables:
|
||||||
# mode: Shell-Script
|
# mode: Shell-Script
|
||||||
|
|
Loading…
Reference in New Issue