Re: how to force a commit date matching info from a mbox ?
From: Christian MICHON <hidden>
Date: 2016-06-15 22:46:00
On Fri, Jan 23, 2009 at 1:21 AM, Johannes Schindelin [off-list ref] wrote:
Hi, On Thu, 22 Jan 2009, Christian MICHON wrote:quoted
I've a big set of patches in a mbox file: there's sufficient info inside for git-am to work. Yet, each time I do import these, my sha1sums are changing because of different commit dates. 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 ?Have you tried setting GIT_COMMITTER_DATE to the given date?
yes, I did. This is what I want to change: I can fix the same
GIT_COMMITTER_DATE for all patches in the mbox, but I really want +
GIT_COMMITTER_DATE=GIT_AUTHOR_DATE
Alternatively, you can always use a commit-message filter with filter-branch to fix it up. Ciao, Dscho
I'm curious if this could be done: the problem I quickly faced was that this approach would double the amount of commits. So I'm eager to test Junio's patch :) -- Christian -- http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside !