From: Nanako Shiraishi Date: Fri, 23 Jan 2009 00:45:29 GMT Subject: Re: how to force a commit date matching info from a mbox ? Message-ID: <20090123094529.6117@nanako3.lavabit.com> In-Reply-To: <7vljt26fp9.fsf@gitster.siamese.dyndns.org> Quoting Junio C Hamano : > Christian MICHON writes: > >> I'd like to force the commit date to match the info/date from the time >> I received the email (and therefore always get back the right >> sha1sums). >> >> is this possible ? > > "am" being a tool to accept patches written in some past to faithfully > record both author timestamp and committer timestamp, what you seem to > want is outside of the current scope of the tool. > > A patch to butcher "git-am" to copy GIT_COMMITTER_DATE from > GIT_AUTHOR_DATE and export it should be trivial to implement, though. > > Perhaps something like this totally untested patch. You have test scripts already, but you say it is untested? I often wanted to have an opposite of what Christian wants. I always have some changes I am holding off, and when I decide to trickle them out to the main repository, I do not want the resulting commit to carry old dates that are recorded in the format-patch output. Instead I want to pretend that I worked on them today. Is this something you can teach git-am and git-rebase to do easily? -- Nanako Shiraishi http://ivory.ap.teacup.com/nanako3/