* how to change/fake the time for next commit ? @ 2007-11-23 0:29 Christian MICHON 2007-11-23 0:34 ` Johannes Schindelin 2007-11-23 7:20 ` Johannes Sixt 0 siblings, 2 replies; 4+ messages in thread From: Christian MICHON @ 2007-11-23 0:29 UTC (permalink / raw) To: git Hi Git list, I'd like to recreate a git repo with kernel version, using exclusively tar.bz2 files. I already did such approach in the past by script, but usually the dates of commit are the timestamps of current tar imports. I'd like the date of commit to match any date I would give (without changing the time on my linux system): the date I would give would be (of course) the date of the released version. example: date of 2.6.23.8 release was 2007-11-16 18:16 UTC, so if I import linux-2.6.23.8.tar.bz2 into a dedicated "2.6.23.8" branch, I'd like the commit to have "2007-11-16 18:16 UTC" as date. Is there a way to do this, by plumbing or porcelain ? -- Christian -- http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside ! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to change/fake the time for next commit ? 2007-11-23 0:29 how to change/fake the time for next commit ? Christian MICHON @ 2007-11-23 0:34 ` Johannes Schindelin 2007-11-23 0:45 ` Christian MICHON 2007-11-23 7:20 ` Johannes Sixt 1 sibling, 1 reply; 4+ messages in thread From: Johannes Schindelin @ 2007-11-23 0:34 UTC (permalink / raw) To: Christian MICHON; +Cc: git Hi, On Fri, 23 Nov 2007, Christian MICHON wrote: > I already did such approach in the past by script, but usually the > dates of commit are the timestamps of current tar imports. Have you tried setting the environment variables GIT_COMMITTER_DATE and GIT_AUTHOR_DATE before committing? Hth, Dscho ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to change/fake the time for next commit ? 2007-11-23 0:34 ` Johannes Schindelin @ 2007-11-23 0:45 ` Christian MICHON 0 siblings, 0 replies; 4+ messages in thread From: Christian MICHON @ 2007-11-23 0:45 UTC (permalink / raw) To: Johannes Schindelin; +Cc: git On Nov 23, 2007 1:34 AM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote: > Have you tried setting the environment variables GIT_COMMITTER_DATE and > GIT_AUTHOR_DATE before committing? cool! yes indeed it helped. ;-) Thanks Dscho! -- Christian -- http://detaolb.sourceforge.net/, a linux distribution for Qemu with Git inside ! ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: how to change/fake the time for next commit ? 2007-11-23 0:29 how to change/fake the time for next commit ? Christian MICHON 2007-11-23 0:34 ` Johannes Schindelin @ 2007-11-23 7:20 ` Johannes Sixt 1 sibling, 0 replies; 4+ messages in thread From: Johannes Sixt @ 2007-11-23 7:20 UTC (permalink / raw) To: Christian MICHON; +Cc: git Christian MICHON schrieb: > I'd like to recreate a git repo with kernel version, using exclusively > tar.bz2 files. There's contrib/fast-import/import-tars.perl. -- Hannes ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-11-23 7:21 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2007-11-23 0:29 how to change/fake the time for next commit ? Christian MICHON 2007-11-23 0:34 ` Johannes Schindelin 2007-11-23 0:45 ` Christian MICHON 2007-11-23 7:20 ` Johannes Sixt
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).