38181: _git reflog: Complete '@{N}' instead of 'HEAD@{N}'.

The «HEAD@{...}» syntax is no longer completed, since it's not easily possible
to support both syntaxes (workers/34768).
This commit is contained in:
Daniel Shahaf 2016-03-18 21:21:44 +00:00
parent 67136df0bf
commit ce4c9eafc4
2 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2016-03-21 Daniel Shahaf <d.s@daniel.shahaf.name>
* 38181: Completion/Unix/Command/_git: _git reflog: Complete
'@{N}' instead of 'HEAD@{N}'.
* 38180: Completion/Unix/Command/_git: Improve reflog completion.
2016-03-21 Peter Stephenson <p.stephenson@samsung.com>

View File

@ -5475,6 +5475,7 @@ __git_reflog_entries () {
declare -a reflog_entries
reflog_entries=(${(f)"$(_call_program reflog-entries "git reflog -1000 --pretty='%gD:[%h] %gs'" 2>/dev/null)"})
reflog_entries=( ${reflog_entries/HEAD@$'\x7b'/@$'\x7b'} )
__git_command_successful $pipestatus || return 1
_describe -Vx -t reflog-entries 'reflog entry' reflog_entries