{"thread":{"id":"7998","subject":"How to set git commit timestamp","startedAt":"2007-05-06T16:03:14Z","lastAt":"2007-05-11T10:58:34Z","messageCount":9,"participants":["Guido Ostkamp","Alex Riesen","René Scharfe","Robin Rosenberg","Shawn O. Pearce","Jakub Narebski","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"41215","messageId":"Pine.LNX.4.64.0705061759210.8165@bianca.dialin.t-online.de","threadId":"7998","inReplyTo":null,"subject":"How to set git commit timestamp","fromName":"Guido Ostkamp","fromEmail":"git@ostkamp.fastmail.fm","sentAt":"2007-05-06T16:03:14Z","receivedAt":"2007-05-06T16:03:14Z","isPatch":false,"sender":{"key":"git@ostkamp.fastmail.fm","avatar":null},"body":"Hello,\n\ndoes somebody know a method to specify a timestamp for a 'git commit'?\n\nI am writing a tool to convert from another SCM to git and need to replay \nall checkins. I know how to set the log message and the author, but there \nappears to be no command option for the timestamp (Mercurial for example, \nhas a 'hg commit -d date <file>' syntax for this).\n\nAny help is appreciated.\n\nRegards\n\nGuido\n"},{"id":"41220","messageId":"20070506164136.GB2434@steel.home","threadId":"7998","inReplyTo":"Pine.LNX.4.64.0705061759210.8165@bianca.dialin.t-online.de","subject":"Re: How to set git commit timestamp","fromName":"Alex Riesen","fromEmail":"raa.lkml@gmail.com","sentAt":"2007-05-06T16:41:36Z","receivedAt":"2007-05-06T16:41:36Z","isPatch":false,"sender":{"key":"raa.lkml@gmail.com","avatar":"https://avatars.githubusercontent.com/u/324101?v=4"},"body":"Guido Ostkamp, Sun, May 06, 2007 18:03:14 +0200:\n> \n> does somebody know a method to specify a timestamp for a 'git commit'?\n> \n\nSet GIT_AUTHOR_DATE (and maybe GIT_COMMITTER_DATE) in the environment.\n"},{"id":"41224","messageId":"463E0FDE.3000504@lsrfire.ath.cx","threadId":"7998","inReplyTo":"Pine.LNX.4.64.0705061759210.8165@bianca.dialin.t-online.de","subject":"Re: How to set git commit timestamp","fromName":"René Scharfe","fromEmail":"rene.scharfe@lsrfire.ath.cx","sentAt":"2007-05-06T17:26:54Z","receivedAt":"2007-05-06T17:26:54Z","isPatch":false,"sender":{"key":"l.s.r@web.de","avatar":"https://avatars.githubusercontent.com/u/26122331?v=4"},"body":"Guido Ostkamp schrieb:\n> Hello,\n> \n> does somebody know a method to specify a timestamp for a 'git commit'?\n> \n> I am writing a tool to convert from another SCM to git and need to\n> replay all checkins. I know how to set the log message and the author,\n> but there appears to be no command option for the timestamp (Mercurial\n> for example, has a 'hg commit -d date <file>' syntax for this).\n\nYou can use the environment variable GIT_COMMITTER_DATE to force a\nspecific commit date.  Please see the man page of git-commit-tree for\n(some) more info.\n\nRené\n"},{"id":"41243","messageId":"200705062151.40261.robin.rosenberg.lists@dewire.com","threadId":"7998","inReplyTo":"Pine.LNX.4.64.0705061759210.8165@bianca.dialin.t-online.de","subject":"Re: How to set git commit timestamp","fromName":"Robin Rosenberg","fromEmail":"robin.rosenberg.lists@dewire.com","sentAt":"2007-05-06T19:51:11Z","receivedAt":"2007-05-06T19:51:11Z","isPatch":false,"sender":{"key":"robin.rosenberg@dewire.com","avatar":"https://avatars.githubusercontent.com/u/46357?v=4"},"body":"söndag 06 maj 2007 skrev Guido Ostkamp:\n> Hello,\n> \n> does somebody know a method to specify a timestamp for a 'git commit'?\n> \n> I am writing a tool to convert from another SCM to git and need to replay \n> all checkins. I know how to set the log message and the author, but there \n> appears to be no command option for the timestamp (Mercurial for example, \n> has a 'hg commit -d date <file>' syntax for this).\n\nIf you are writing a converter then you should really use the plumbing \ncommands rather than porcelains like git-commit and in particular you should \nlook at git-fast-import for a  really fast methord of importing (and packing) \nobjects.\n\n-- robin\n"},{"id":"41380","messageId":"20070508013833.GB11311@spearce.org","threadId":"7998","inReplyTo":"200705062151.40261.robin.rosenberg.lists@dewire.com","subject":"Re: How to set git commit timestamp","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-05-08T01:38:33Z","receivedAt":"2007-05-08T01:38:33Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:\n> söndag 06 maj 2007 skrev Guido Ostkamp:\n> > I am writing a tool to convert from another SCM to git and need to replay \n> > all checkins. I know how to set the log message and the author, but there \n> > appears to be no command option for the timestamp (Mercurial for example, \n> > has a 'hg commit -d date <file>' syntax for this).\n> \n> If you are writing a converter then you should really use the plumbing \n> commands rather than porcelains like git-commit and in particular you should \n> look at git-fast-import for a  really fast methord of importing (and packing) \n> objects.\n\nAs the author of a few convert-to-git things, fast-import really\nis the easiest way to import stuff into git, even if it doesn't\nneed to be \"fast\".  The input format is quite simple to create,\nand is documented pretty heavily in the git-fast-import manual page.\n\nThere's also contrib/fast-import/import-tars.pl which handles\ndecompressing and importing one or more tar files into a Git\nrepository.  Works pretty well...\n\nSo I agree with Robin, give fast-import a try.\n\n-- \nShawn.\n"},{"id":"41386","messageId":"f1ol0d$tcd$1@sea.gmane.org","threadId":"7998","inReplyTo":"20070508013833.GB11311@spearce.org","subject":"Re: How to set git commit timestamp","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-05-08T01:54:38Z","receivedAt":"2007-05-08T01:54:38Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Shawn O. Pearce wrote:\n> Robin Rosenberg <robin.rosenberg.lists@dewire.com> wrote:\n>> söndag 06 maj 2007 skrev Guido Ostkamp:\n\n>>> I am writing a tool to convert from another SCM to git and need to replay \n>>> all checkins. I know how to set the log message and the author, but there \n>>> appears to be no command option for the timestamp (Mercurial for example, \n>>> has a 'hg commit -d date <file>' syntax for this).\n>> \n>> If you are writing a converter then you should really use the plumbing \n>> commands rather than porcelains like git-commit and in particular you should \n>> look at git-fast-import for a  really fast methord of importing (and packing) \n>> objects.\n> \n> As the author of a few convert-to-git things, fast-import really\n> is the easiest way to import stuff into git, even if it doesn't\n> need to be \"fast\".  The input format is quite simple to create,\n> and is documented pretty heavily in the git-fast-import manual page.\n> \n> There's also contrib/fast-import/import-tars.pl which handles\n> decompressing and importing one or more tar files into a Git\n> repository.  Works pretty well...\n\nBy the way, is there fast-import version of git-quiltimport?\n\n-- \nJakub Narebski\nWarsaw, Poland\nShadeHawk on #git\n"},{"id":"41388","messageId":"20070508015702.GE11311@spearce.org","threadId":"7998","inReplyTo":"f1ol0d$tcd$1@sea.gmane.org","subject":"Re: How to set git commit timestamp","fromName":"Shawn O. Pearce","fromEmail":"spearce@spearce.org","sentAt":"2007-05-08T01:57:02Z","receivedAt":"2007-05-08T01:57:02Z","isPatch":false,"sender":{"key":"spearce@spearce.org","avatar":"https://avatars.githubusercontent.com/u/34844?v=4"},"body":"Jakub Narebski <jnareb@gmail.com> wrote:\n> By the way, is there fast-import version of git-quiltimport?\n\nNo, and I don't think its easy.  Isn't a quilt patchstack stored\nas a series of patch files?  So \"importing\" it into Git requires\napplying the patch to the base tree, then writing that base tree\nto the ODB.  fast-import doesn't know how to run git-apply, though\nJunio and I did kick it around (generally) a few months ago on #git.\n\n-- \nShawn.\n"},{"id":"41443","messageId":"Pine.LNX.4.64.0705081328420.4167@racer.site","threadId":"7998","inReplyTo":"20070508015702.GE11311@spearce.org","subject":"Re: How to set git commit timestamp","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-05-08T11:29:29Z","receivedAt":"2007-05-08T11:29:29Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 7 May 2007, Shawn O. Pearce wrote:\n\n> Jakub Narebski <jnareb@gmail.com> wrote:\n> > By the way, is there fast-import version of git-quiltimport?\n> \n> No, and I don't think its easy.  Isn't a quilt patchstack stored as a \n> series of patch files?  So \"importing\" it into Git requires applying the \n> patch to the base tree, then writing that base tree to the ODB.  \n> fast-import doesn't know how to run git-apply, though Junio and I did \n> kick it around (generally) a few months ago on #git.\n\nYou'd have to pretend that all of these patches are branches. Well, in the \nend they are...\n\nCiao,\nDscho\n"},{"id":"41827","messageId":"200705111258.35050.jnareb@gmail.com","threadId":"7998","inReplyTo":"Pine.LNX.4.64.0705081328420.4167@racer.site","subject":"Re: How to set git commit timestamp","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2007-05-11T10:58:34Z","receivedAt":"2007-05-11T10:58:34Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"On Tue, 8 May 2007, Johannes Schindelin wrote: \n> On Mon, 7 May 2007, Shawn O. Pearce wrote:\n>> Jakub Narebski <jnareb@gmail.com> wrote:\n\n>>> By the way, is there fast-import version of git-quiltimport?\n>> \n>> No, and I don't think its easy.  Isn't a quilt patchstack stored as a \n>> series of patch files?  So \"importing\" it into Git requires applying the \n>> patch to the base tree, then writing that base tree to the ODB.  \n>> fast-import doesn't know how to run git-apply, though Junio and I did \n>> kick it around (generally) a few months ago on #git.\n> \n> You'd have to pretend that all of these patches are branches. Well, in the \n> end they are...\n\nOr rather that patch _series_ are branches. \n\nIt would be also nice to have one of the patch management UI on top of git\nlike StGIT or Guilt (IIRC pg is no longer maintained) to import series\nof patches as unapplied from Quilt (or from mbox/file).\n\n-- \nJakub Narebski\nPoland\n"}]}