From: Junio C Hamano Date: Fri, 02 Nov 2007 22:33:26 GMT Subject: Re: [PATCH 1/4] Add testcase for ammending and fixing author in git commit. Message-ID: <7vk5p0z39l.fsf@gitster.siamese.dyndns.org> In-Reply-To: <1194038030.25288.20.camel@hinata.boston.redhat.com> Kristian Høgsberg writes: >> This can't be right. How are you ignoring the differences in >> committer dates? > > t/test-lib.sh fixes GIT_COMMITTER_DATE so all commits have the date > > committer C O Mitter 1112911993 -0700 > > unless you use test_tick. Heh, that was actually what I was getting at. By not doing test_tick, you are not making sure that the commit gets the timestamp of the time --amend is run. >> By the way, I _think_ git-commit.sh allows fixing author name/email >> without molesting the author timestamp (i.e. takes it from the >> amended commit). That should probably be checked with the test >> as well. > > You're right, I need to pick GIT_AUTHOR_DATE from the ammended commit. > Ok, I'll need to rewrite determine_author_info() a little bit. I might > get an update patch out this weekend.