summaryrefslogtreecommitdiffstats
path: root/Completion
diff options
context:
space:
mode:
authorArseny Maslennikov <ar@cs.msu.ru>2025-11-17 18:02:20 +0300
committerOliver Kiddle <opk@zsh.org>2025-11-17 17:49:35 +0100
commit81aefc79ad0934593c9a8f2e4bcef335440091a4 (patch)
treecd05b699df109ff4464e8a3ec8a6f998d564e65e /Completion
parentunposted: silence compiler warning on new code (diff)
downloadzsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.tar
zsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.tar.gz
zsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.tar.bz2
zsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.tar.lz
zsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.tar.xz
zsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.tar.zst
zsh-81aefc79ad0934593c9a8f2e4bcef335440091a4.zip
54091: _git: add support for more pretty format specifiers
The specifiers are taken from the git-log(1) man page. The %[ac]h specifier matches the behaviour of git rev-list --date=human.
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Command/_git4
1 files changed, 4 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 93275124d..89f78ecb3 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -8270,12 +8270,16 @@ __git_format_placeholders() {
N:'name (use .mailmap)'
e:'email'
E:'email (use .mailmap)'
+ l:'email local part'
+ L:'email local part (use .mailmap)'
d:'date'
D:'date, RFC2822 style'
r:'date, relative'
t:'date, UNIX timestamp'
i:'date, like ISO 8601'
I:'date, strict ISO 8601'
+ s:'date, YYYY-MM-DD'
+ h:'date, human'
)
placeholders=( $match[1]$^placeholders )
else