From: Johannes Sixt Date: Fri, 30 Oct 2009 21:56:20 GMT Subject: Re: [PATCH] Changed timestamp behavior of options -c/-C/--amend Message-ID: <4AEB6104.3080005@kdbg.org> In-Reply-To: <1256931394-9338-1-git-send-email-erick.mattos@gmail.com> Erick Mattos schrieb: > @@ -61,13 +62,16 @@ OPTIONS > -C :: > --reuse-message=:: > Take an existing commit object, and reuse the log message > - and the authorship information (including the timestamp) > - when creating the commit. > + and the authorship information when creating the commit. > + By default, timestamp is taken from specified commit unless > + option --new-timestamp is included. > > -c :: > --reedit-message=:: > Like '-C', but with '-c' the editor is invoked, so that > the user can further edit the commit message. > + By default, timestamp is recalculated and not taken from > + specified commit unless option --old-timestamp is included. > > -F :: > --file=:: > @@ -134,6 +138,8 @@ OPTIONS > current tip -- if it was a merge, it will have the parents of > the current tip as parents -- so the current top commit is > discarded. > + By default, timestamp is taken from latest commit unless option > + --new-timestamp is included. I don't like this a lot. Currently, we consistently (and predictably!) reuse the timestamp when the author information is reused. Therefore, I think it should be sufficient to introduce only --new-timestamp. -- Hannes