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

how to change/fake the time for next commit ?

From
Christian MICHON <christian.michon@gmail.com>
Date
Nov 23, 2007, 00:29 UTC
Message-ID
<46d6db660711221629j5d294a5dp4771778e38b14962@mail.gmail.com>
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 !
Next: Johannes Schindelin
Message 1 of 4 in “how to change/fake the time for next commit ?”
  1. Christian MICHONNov 23, 2007
  2. Johannes SchindelinNov 23, 2007
  3. Christian MICHONNov 23, 2007
  4. Johannes SixtNov 23, 2007

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.