git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: how to force a commit date matching info from a mbox ?

From
Christian MICHON <christian.michon@gmail.com>
Date
Jan 23, 2009, 08:07 UTC
Message-ID
<46d6db660901230007x36368c79s724d1adb51d0818d@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0901230119490.3586@pacific.mpi-cbg.de>

On Fri, Jan 23, 2009 at 1:21 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 16 quoted lines
> Hi,
>
> On Thu, 22 Jan 2009, Christian MICHON wrote:
>
>> 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
Show 7 quoted lines
>
> 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 !
Previous: Johannes Schindelin
Message 19 of 19 in “how to force a commit date matching info from a mbox ?”
  1. Christian MICHONJan 22, 2009
  2. Junio C HamanoJan 23, 2009
  3. Nanako ShiraishiJan 23, 2009
  4. Junio C HamanoJan 23, 2009
  5. Nanako ShiraishiJan 23, 2009
  6. Junio C HamanoJan 23, 2009
  7. Jeff KingJan 23, 2009
  8. Johannes SchindelinJan 24, 2009
  9. Jeff KingJan 24, 2009
  10. Johannes SchindelinJan 24, 2009
  11. Jeff KingJan 24, 2009
  12. Nanako ShiraishiJan 23, 2009
  13. Junio C HamanoJan 23, 2009
  14. Johannes SchindelinJan 23, 2009
  15. Adeodato SimóJan 23, 2009
  16. Christian MICHONJan 23, 2009
  17. Christian MICHONJan 23, 2009
  18. Johannes SchindelinJan 23, 2009
  19. Christian MICHONJan 23, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.