mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Various fixes, remove _zargs already upstream
Many movings of local inside the actual functions. Add many missing local and remove -g(!). Fix namespacing of some parameters and functions, phases() in _scala was nice.
This commit is contained in:
@@ -42,16 +42,12 @@
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
||||
# ------------------------------------------------------------------------------
|
||||
|
||||
_git-wtf () {
|
||||
_arguments -w -C -s \
|
||||
'(--long --short)'{-l,--long}'[include author info and date for each commit]' \
|
||||
'(--long --short)'{-s,--short}'[do not show commits]' \
|
||||
'(--all)'{-a,--all}'[show all branches across all remote repos, not just those from origin]' \
|
||||
'(--all-commits)'{-A,--all-commits}'[show all commits, not just the first 5]' \
|
||||
'(--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 "$@"
|
||||
_arguments -w -C -s \
|
||||
'(--long --short)'{-l,--long}'[include author info and date for each commit]' \
|
||||
'(--long --short)'{-s,--short}'[do not show commits]' \
|
||||
'(--all)'{-a,--all}'[show all branches across all remote repos, not just those from origin]' \
|
||||
'(--all-commits)'{-A,--all-commits}'[show all commits, not just the first 5]' \
|
||||
'(--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'
|
||||
|
||||
Reference in New Issue
Block a user