All of lore.kernel.org
 help / color / mirror / Atom feed
From: "René Scharfe" <rene.scharfe@lsrfire.ath.cx>
To: Guido Ostkamp <git@ostkamp.fastmail.fm>
Cc: git@vger.kernel.org
Subject: Re: How to set git commit timestamp
Date: Sun, 06 May 2007 19:26:54 +0200	[thread overview]
Message-ID: <463E0FDE.3000504@lsrfire.ath.cx> (raw)
In-Reply-To: <Pine.LNX.4.64.0705061759210.8165@bianca.dialin.t-online.de>

Guido Ostkamp schrieb:
> Hello,
> 
> does somebody know a method to specify a timestamp for a 'git commit'?
> 
> I am writing a tool to convert from another SCM to git and need to
> replay all checkins. I know how to set the log message and the author,
> but there appears to be no command option for the timestamp (Mercurial
> for example, has a 'hg commit -d date <file>' syntax for this).

You can use the environment variable GIT_COMMITTER_DATE to force a
specific commit date.  Please see the man page of git-commit-tree for
(some) more info.

René

  parent reply	other threads:[~2007-05-06 17:27 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-06 16:03 How to set git commit timestamp Guido Ostkamp
2007-05-06 16:41 ` Alex Riesen
2007-05-06 17:26 ` René Scharfe [this message]
2007-05-06 19:51 ` Robin Rosenberg
2007-05-08  1:38   ` Shawn O. Pearce
2007-05-08  1:54     ` Jakub Narebski
2007-05-08  1:57       ` Shawn O. Pearce
2007-05-08 11:29         ` Johannes Schindelin
2007-05-11 10:58           ` Jakub Narebski

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=463E0FDE.3000504@lsrfire.ath.cx \
    --to=rene.scharfe@lsrfire.ath.cx \
    --cc=git@ostkamp.fastmail.fm \
    --cc=git@vger.kernel.org \
    /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.