Re: How to set git commit timestamp
- From
Robin Rosenberg <robin.rosenberg.lists@dewire.com>
- Date
- May 6, 2007, 19:51 UTC
- Message-ID
- <200705062151.40261.robin.rosenberg.lists@dewire.com>
- In-Reply-To
- <Pine.LNX.4.64.0705061759210.8165@bianca.dialin.t-online.de>
söndag 06 maj 2007 skrev Guido Ostkamp:
Show 8 quoted lines
> 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).
If you are writing a converter then you should really use the plumbing commands rather than porcelains like git-commit and in particular you should look at git-fast-import for a really fast methord of importing (and packing) objects.
-- robin