1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-26 04:30:27 +01:00

38180: _git: Improve reflog completion.

Currently, only used by «git reflog delete <TAB>».
This commit is contained in:
Daniel Shahaf 2016-03-18 21:21:43 +00:00
parent cbc44bd64a
commit 67136df0bf
2 changed files with 6 additions and 2 deletions

View file

@ -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] )) ||