Re: [PATCH] git-commit: add option --date-now

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] git-commit: add option --date-now

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:52:41

Carlos Martín Nieto [off-list ref] writes:
I was surpised when I tried 'git commit --amend --date=now' that git
didn't understand 'now' as a date, which seems like a more obvious
place to fix it.
+1

I really don't think Git wants yet-another-option for each use-case we
find, and accepting "now" as a date (either by hardcoding "now" as an
accepted value, or by running approxidate on the argument of --date).

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/

Re: [PATCH] git-commit: add option --date-now

From: Jeff King <hidden>
Date: 2016-06-15 22:52:41

On Wed, Dec 21, 2011 at 05:24:57PM +0100, Matthieu Moy wrote:
Carlos Martín Nieto [off-list ref] writes:
quoted
I was surpised when I tried 'git commit --amend --date=now' that git
didn't understand 'now' as a date, which seems like a more obvious
place to fix it.
+1

I really don't think Git wants yet-another-option for each use-case we
find, and accepting "now" as a date (either by hardcoding "now" as an
accepted value, or by running approxidate on the argument of --date).
I'm curious of the use case where one wants "--date=now" but not
"--reset-author". Or is it simply that "--reset-author" is a less
obvious thing to try?

At any rate, if we are going to do that, I agree it should be spelled
"--date=now", and not "--date-now".

-Peff
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help