# how to change/fake the time for next commit ?

4 messages from 2007-11-23 to 2007-11-23. Participants: Christian MICHON, Johannes Schindelin, Johannes Sixt.
Thread: https://gitlist.dev/t/10987

## Christian MICHON, 2007-11-23 00:29

Subject: how to change/fake the time for next commit ?
Message-ID: <46d6db660711221629j5d294a5dp4771778e38b14962@mail.gmail.com>
URL: https://gitlist.dev/e/46d6db660711221629j5d294a5dp4771778e38b14962%40mail.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 !

```

## Johannes Schindelin, 2007-11-23 00:34

Subject: Re: how to change/fake the time for next commit ?
Message-ID: <Pine.LNX.4.64.0711230032320.27959@racer.site>
URL: https://gitlist.dev/e/Pine.LNX.4.64.0711230032320.27959%40racer.site
In-Reply-To: <46d6db660711221629j5d294a5dp4771778e38b14962@mail.gmail.com>

```
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

```

## Christian MICHON, 2007-11-23 00:45

Subject: Re: how to change/fake the time for next commit ?
Message-ID: <46d6db660711221645t652d767fjbe8c5dfc2f93483f@mail.gmail.com>
URL: https://gitlist.dev/e/46d6db660711221645t652d767fjbe8c5dfc2f93483f%40mail.gmail.com
In-Reply-To: <Pine.LNX.4.64.0711230032320.27959@racer.site>

```
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 !

```

## Johannes Sixt, 2007-11-23 07:20

Subject: Re: how to change/fake the time for next commit ?
Message-ID: <47467F44.80307@viscovery.net>
URL: https://gitlist.dev/e/47467F44.80307%40viscovery.net
In-Reply-To: <46d6db660711221629j5d294a5dp4771778e38b14962@mail.gmail.com>

```
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

```
