From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Gregor Zattler Newsgroups: gmane.emacs.devel Subject: Re: Everyone, please stop making my life more difficult Date: Fri, 12 Sep 2014 12:49:29 +0200 Message-ID: <20140912104929.GA17830@boo.workgroup> References: <20140912043652.4D6D8380604@snark.thyrsus.com> <834mwd8j6a.fsf@gnu.org> <20140912095542.GD32586@thyrsus.com> <83y4tp6sc3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1410519358 10808 80.91.229.3 (12 Sep 2014 10:55:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 10:55:58 +0000 (UTC) To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 12 12:55:52 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XSOW7-0006vu-CI for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2014 12:55:51 +0200 Original-Received: from localhost ([::1]:44076 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSOW7-0007UL-0S for ged-emacs-devel@m.gmane.org; Fri, 12 Sep 2014 06:55:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54461) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSOVZ-0007KD-CY for emacs-devel@gnu.org; Fri, 12 Sep 2014 06:55:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSOVT-0005Ly-Hk for emacs-devel@gnu.org; Fri, 12 Sep 2014 06:55:17 -0400 Original-Received: from mout.gmx.net ([212.227.15.18]:55952) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSOVT-0005LY-8P for emacs-devel@gnu.org; Fri, 12 Sep 2014 06:55:11 -0400 Original-Received: from boo.workgroup ([87.185.169.31]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MBFgr-1Xcb2h1UVp-00AHM4 for ; Fri, 12 Sep 2014 12:50:06 +0200 Original-Received: from grfz by boo.workgroup with local (Exim 4.84) (envelope-from ) id 1XSOQR-0002fm-C9; Fri, 12 Sep 2014 12:49:59 +0200 Mail-Followup-To: emacs-devel Content-Disposition: inline In-Reply-To: <83y4tp6sc3.fsf@gnu.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Provags-ID: V03:K0:4rx7fLkc7Xz6wRBFaalAmO0ct/6Ec7GWUaRkhiBh0unXu2PoRZJ tA3wUm/GwJvrYTlDRuJyfAZOQJ6yw05rUU5xgQLg22cpz8bi21cLSOeCEHudV0hl2PGxVrl N3ieBoIq8wXkJ+U1s0tyNrLtAwOLoX0hyzzNkFD4ySFFKN76fFLMeiXRLZzfbR7f8+QY4fB ScJgThq1f1W+xRpBwNoHw== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.18 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174203 Archived-At: Hi Eli, * Eli Zaretskii [12. Sep. 2014]: >> I know how to do it using a script wrapper around git log. The >> central bit of magic is this: >> >> git log -1 --pretty='%ci!%ce' $1 >> >> The output from that needs trivial editing in the date part. > > This produces the local time, while we need UTC (a.k.a. "Zulu"). Is > there a way to have a UTC time? How about: #!/bin/sh echo $(date -u --rfc-3339=seconds -d "$(git log -1 --pretty='%ci' ${1})"|sed -e 's/ /T/' -e 's/+00:00//')Z$(git log -1 --pretty='!%ce' "${1}") Ciao, Gregor -- -... --- .-. . -.. ..--.. ...-.-