mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-11-30 03:50:56 +01:00
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.
This commit is contained in:
parent
5e3aadfffd
commit
81aefc79ad
2 changed files with 7 additions and 0 deletions
|
|
@ -1,5 +1,8 @@
|
|||
2025-11-17 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* Arseny Maslennikov: 54091: Completion/Unix/Command/_git:
|
||||
add support for more pretty format specifiers
|
||||
|
||||
* unposted: Src/prompt.c: silence compiler warning on new code
|
||||
|
||||
* Christopher Bock: 54085: Completion/Unix/Command/_tput:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue