Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH 5/7] completion: git: add %cr to commit objects (all and recent)
- X-seq: zsh-workers 35103
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH 5/7] completion: git: add %cr to commit objects (all and recent)
- Date: Wed, 13 May 2015 16:26:29 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= references:in-reply-to:x-mailer:message-id:date:date:subject :subject:from:from:received:received:received; s=postfix2; t= 1431527205; bh=z6XZQNzfOuZLWxBB00AmBSnEojs4e33BwoAm+J3ZEt0=; b=U Qch2jpQDl/KgLg+EJhn47g9EbFh/sI41KqTr9Aab9sxyk/1zxEaMxs/9zh0f3woX 7XN54HxkUolKcEjEjJ2JZlWE/WdngCbU7V0PXlGfJdknnWXxFzz4Tm4yxDbfMHNx CUQvktzZlCRmIbfliMCrvrl3fC/4eqJDUgfDczkGYg=
- In-reply-to: <1431527191-32165-1-git-send-email-genml+zsh-workers@thequod.de>
- 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: <1431527191-32165-1-git-send-email-genml+zsh-workers@thequod.de>
From: Daniel Hahler <git@xxxxxxxxxx>
---
Completion/Unix/Command/_git | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index faf2e55..8135c6d 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -5660,7 +5660,7 @@ __git_commit_objects () {
# Note: the after-the-colon part must be unique across the entire array;
# see workers/34768
- : ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -1000 --all --reflog --format='%h:\\\[%h\\\]\ %s')"}}
+ : ${(A)commits::=${(f)"$(_call_program commits git --no-pager log -1000 --all --reflog --format='%h:\[%h\]\ %s\ \(%cr\)')"}}
__git_command_successful $pipestatus || return 1
_describe -V -t commits 'commit object name' commits
@@ -5673,7 +5673,7 @@ __git_recent_commits () {
local i j k
# Careful: most %d will expand to the empty string. Quote properly!
- : "${(A)commits::=${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%D%n%s')"}}"
+ : "${(A)commits::=${(@f)"$(_call_program commits git --no-pager log -20 --format='%h%n%D%n%s\ \(%cr\)')"}}"
__git_command_successful $pipestatus || return 1
for i j k in "$commits[@]" ; do
--
2.4.0.dirty
Messages sorted by:
Reverse Date,
Date,
Thread,
Author