Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 2/3] _git reflog: Complete '@{N}' instead of 'HEAD@{N}'.
- X-seq: zsh-workers 38181
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 2/3] _git reflog: Complete '@{N}' instead of 'HEAD@{N}'.
- Date: Fri, 18 Mar 2016 21:21:44 +0000
- In-reply-to: <1458336105-7348-1-git-send-email-danielsh@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1458336105-7348-1-git-send-email-danielsh@tarsus.local2>
The «HEAD@{...}» syntax is no longer completed, since it's not easily possible
to support both syntaxes (workers/34768).
---
Completion/Unix/Command/_git | 1 +
1 file changed, 1 insertion(+)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 9eeda58..0eb8532 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author