From: Nanako Shiraishi <nanako3@lavabit.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git list <git@vger.kernel.org>,
Christian MICHON <christian.michon@gmail.com>
Subject: Re: how to force a commit date matching info from a mbox ?
Date: Fri, 23 Jan 2009 09:45:29 +0900 [thread overview]
Message-ID: <20090123094529.6117@nanako3.lavabit.com> (raw)
In-Reply-To: <7vljt26fp9.fsf@gitster.siamese.dyndns.org>
Quoting Junio C Hamano <gitster@pobox.com>:
> Christian MICHON <christian.michon@gmail.com> 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/
next prev parent reply other threads:[~2009-01-23 0:47 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-22 22:41 how to force a commit date matching info from a mbox ? Christian MICHON
2009-01-23 0:14 ` Junio C Hamano
2009-01-23 0:45 ` Nanako Shiraishi [this message]
2009-01-23 7:37 ` Junio C Hamano
2009-01-23 8:26 ` Nanako Shiraishi
2009-01-23 9:39 ` Junio C Hamano
2009-01-23 22:29 ` Jeff King
2009-01-24 0:34 ` Johannes Schindelin
2009-01-24 0:52 ` Jeff King
2009-01-24 1:43 ` Johannes Schindelin
2009-01-24 2:35 ` Jeff King
2009-01-23 9:52 ` Nanako Shiraishi
2009-01-23 17:27 ` Junio C Hamano
2009-01-23 12:38 ` [PATCH] git-am: Add --ignore-date option Johannes Schindelin
2009-01-23 13:17 ` Adeodato Simó
2009-01-23 8:08 ` how to force a commit date matching info from a mbox ? Christian MICHON
2009-01-23 8:51 ` Christian MICHON
2009-01-23 0:21 ` Johannes Schindelin
2009-01-23 8:07 ` Christian MICHON
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090123094529.6117@nanako3.lavabit.com \
--to=nanako3@lavabit.com \
--cc=christian.michon@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.