mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
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:
parent
67136df0bf
commit
ce4c9eafc4
2 changed files with 4 additions and 0 deletions
|
@ -1,5 +1,8 @@
|
||||||
2016-03-21 Daniel Shahaf <d.s@daniel.shahaf.name>
|
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.
|
* 38180: Completion/Unix/Command/_git: Improve reflog completion.
|
||||||
|
|
||||||
2016-03-21 Peter Stephenson <p.stephenson@samsung.com>
|
2016-03-21 Peter Stephenson <p.stephenson@samsung.com>
|
||||||
|
|
|
@ -5475,6 +5475,7 @@ __git_reflog_entries () {
|
||||||
declare -a 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=(${(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
|
__git_command_successful $pipestatus || return 1
|
||||||
|
|
||||||
_describe -Vx -t reflog-entries 'reflog entry' reflog_entries
|
_describe -Vx -t reflog-entries 'reflog entry' reflog_entries
|
||||||
|
|
Loading…
Reference in a new issue