git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "René Scharfe" <l.s.r@web.de>
To: Shaun Uldrikis <stuldrikis@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: git log use of date format differs between Command Line and script usage.
Date: Fri, 30 Jun 2017 18:41:56 +0200	[thread overview]
Message-ID: <7e7c7d22-36e2-20f4-0cfc-8cfe37d9a409@web.de> (raw)
In-Reply-To: <CADHEqX_fiUhnpn6WAFrbDaNJTb1Vbom7Ndn-n6WmQ0gkQ69ZeA@mail.gmail.com>

Am 30.06.2017 um 18:06 schrieb Shaun Uldrikis:
> If you supply a non-standard format to the date configuration for git
> log, something like:
> [log]
>          date = format:%Y-%m-%d %H:%M
> 
> then, when you run 'git log' inside a script, or when using gitk
> (anywhere), it fails on decoding the format.
> 
> fatal: unknown date format format: %Y-%m-%d %H:%M
> 
> 
> However, that format works correctly on the command line.
> I do not have a patch to address this issue.

I guess you have two versions of git on your system, and the one used in
scripts is older than 2.6.0, which introduced this feature.

René

  reply	other threads:[~2017-06-30 16:42 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30 16:06 git log use of date format differs between Command Line and script usage Shaun Uldrikis
2017-06-30 16:41 ` René Scharfe [this message]
2017-06-30 16:43 ` Stefan Beller
2017-06-30 17:29   ` Shaun Uldrikis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e7c7d22-36e2-20f4-0cfc-8cfe37d9a409@web.de \
    --to=l.s.r@web.de \
    --cc=git@vger.kernel.org \
    --cc=stuldrikis@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).