git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Q about the date format in "git commit --date=..." and such
@ 2011-03-06 16:07 Dirk Süsserott
  2011-03-07 16:54 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Dirk Süsserott @ 2011-03-06 16:07 UTC (permalink / raw)
  To: Git Mailing List

Hello,

I frequently change a file in my repo and commit it with
"git commit -a -C deadbeef", i.e. using an older commit message. The
"-C" switch also re-uses the author timestamp of the given SHA1, which
is not what I want. So I tried the "--date=..." switch in addition,
which works fine.

Instead of giving an exact timestamp (like "--date='06.03.2011 16:50'")
I'd prefer to just say "--date=now". Is that somehow possible? If not:
would the community appreciate it, if I would try to implement this?

I imagine to translate "now" to "localtime(time(0))". Would that be good?

Dirk

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-03-08 19:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-06 16:07 Q about the date format in "git commit --date=..." and such Dirk Süsserott
2011-03-07 16:54 ` Jeff King
2011-03-08  0:20   ` Junio C Hamano
2011-03-08  1:16     ` Jeff King
2011-03-08 18:51       ` Andreas Schwab
2011-03-08 19:20         ` Dirk Süsserott

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).