summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_git
diff options
context:
space:
mode:
authorEitan Adler <lists@eitanadler.com>2020-01-11 13:46:13 +0000
committerOliver Kiddle <okiddle@yahoo.co.uk>2020-01-11 17:37:44 +0100
commit5482d65d5c9b933db8df3d3f39d36df9c5f63bdd (patch)
tree48071c1ecf1554217cca3bf7e138e4b145e7c509 /Completion/Unix/Command/_git
parent2ce5f6d79a70060c65b2d1ff456e5b505309e0be (diff)
downloadzsh-5482d65d5c9b933db8df3d3f39d36df9c5f63bdd.tar.gz
zsh-5482d65d5c9b933db8df3d3f39d36df9c5f63bdd.zip
45280: _git: add -local variants
Technically all timezone formats support the "-local" suffix but it is not meaningful for all of them. As such just list out the specific formats which it does. Also adjust the 'default' description
Diffstat (limited to 'Completion/Unix/Command/_git')
-rw-r--r--Completion/Unix/Command/_git11
1 files changed, 9 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 2906a2276..7f2c206c1 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -6116,15 +6116,22 @@ __git_date_formats () {
date_formats=(
relative:'show dates relative to the current time'
- local:'show timestamps in local timezone'
+ local:'show timestamps in the local timezone'
iso{,8601}:'show timestamps in ISO 8601 format'
+ iso{,8601}-local:'show timestamps in ISO 8601 format in the local timezone'
iso-strict:'show timestamps in strict ISO 8601 format'
+ iso-strict-local:'show timestamps in strict ISO 8601 format in the local timezone'
rfc{,2822}:'show timestamps in RFC 2822 format'
+ rfc{,2822}-local:'show timestamps in RFC 2822 format in the local timezone'
short:'show only date but not time'
+ short-local:'show only date but not time in the local timezone'
raw:'show date in internal raw git format (%s %z)'
+ raw-local:'show date in internal raw git format (%s %z) in the local timezone'
human:'elide some current and recent date elements'
+ human-local:'elide some current and recent date elements in the local timezone'
unix:'show date as a Unix epoch timestamp'
- default:'show timestamp in the original timezone'
+ default:'show timestamp in rfc-like format'
+ default-local:'show timestamp in rfc-like format in the local timezone'
)
_describe -t date-formats 'date format' date_formats -- '( format\:custom\ format )' -S :