From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 8b3eabaf for ; Sat, 11 Jan 2020 13:44:34 +0000 (UTC) Received: (qmail 10995 invoked by alias); 11 Jan 2020 13:44:25 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45280 Received: (qmail 28759 invoked by uid 1010); 11 Jan 2020 13:44:25 -0000 X-Qmail-Scanner-Diagnostics: from 52-119-123-37.public.monkeybrains.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25684. spamassassin: 3.4.2. Clear:RC:0(52.119.123.37):SA:0(1.1/5.0):. Processed in 2.351047 secs); 11 Jan 2020 13:44:25 -0000 X-Envelope-From: eax@fasteagle X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at fasteagle does not designate permitted sender hosts) From: Eitan Adler To: zsh-workers@zsh.org Cc: Eitan Adler Subject: [PATCH] _git: add -local variants Date: Sat, 11 Jan 2020 13:46:13 +0000 Message-Id: <20200111134613.96031-1-lists@eitanadler.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Qmail-Scanner-2.11: added fake Content-Type header Content-Type: text/plain Technically all timezone formasts 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 Signed-off-by: Eitan Adler --- Completion/Unix/Command/_git | 11 +++++++++-- 1 file 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 : -- 2.24.1