mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 05:00:59 +01:00
38180: _git: Improve reflog completion.
Currently, only used by «git reflog delete <TAB>».
This commit is contained in:
parent
cbc44bd64a
commit
67136df0bf
2 changed files with 6 additions and 2 deletions
|
|
@ -1,3 +1,7 @@
|
|||
2016-03-21 Daniel Shahaf <d.s@daniel.shahaf.name>
|
||||
|
||||
* 38180: Completion/Unix/Command/_git: Improve reflog completion.
|
||||
|
||||
2016-03-21 Peter Stephenson <p.stephenson@samsung.com>
|
||||
|
||||
* m0viefreak: 38145: Doc/Zsh/zle.yo, Src/Zle/zle_params.c: Make
|
||||
|
|
|
|||
|
|
@ -5474,10 +5474,10 @@ __git_reflog_entries () {
|
|||
local expl
|
||||
declare -a reflog_entries
|
||||
|
||||
reflog_entries=(${${${(f)"$(_call_program reflog-entries git reflog 2>/dev/null)"}#* }%%:*})
|
||||
reflog_entries=(${(f)"$(_call_program reflog-entries "git reflog -1000 --pretty='%gD:[%h] %gs'" 2>/dev/null)"})
|
||||
__git_command_successful $pipestatus || return 1
|
||||
|
||||
_wanted reflog-entries expl 'reflog entry' _multi_parts @ reflog_entries
|
||||
_describe -Vx -t reflog-entries 'reflog entry' reflog_entries
|
||||
}
|
||||
|
||||
(( $+functions[__git_ref_sort_keys] )) ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue