* [PATCH] git commit object completion followup
@ 2015-03-19 6:49 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2015-03-19 6:49 UTC (permalink / raw)
To: zsh-workers
This restores the message when completing a commit object name that
isn't one of the most recent 20 commits. e.g., 'git checkout deadbeef<TAB>'.
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index e5639fa..5524cb0 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5637,7 +5637,7 @@ __git_commit_objects () {
: ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -20 --format='%h:%s')"}}
__git_command_successful $pipestatus || return 1
- _describe -t commits 'commit object name' commits
+ _describe -t commits 'commit object name' commits || _guard '[[:xdigit:]](#c,40)' 'commit object name'
}
(( $+functions[__git_recent_commits] )) ||
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-03-19 6:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-19 6:49 [PATCH] git commit object completion followup Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).