Re: Commit ID in exported Tar Ball
- From
Johan Herland <johan@herland.net>
- Date
- May 17, 2007, 16:57 UTC
- Message-ID
- <200705171857.22891.johan@herland.net>
- In-Reply-To
- <20070517163803.GE4095@cip.informatik.uni-erlangen.de>
On Thursday 17 May 2007, Thomas Glanzmann wrote:
> Hello, > Michae, a friend of mine, is in the phase of migrating from git to cvs.
^^^^^^^^^^^^^^^ Man... You are _definitely_ on the wrong list. ;)
Show 7 quoted lines
> He releases tar balls of his software project using gitweb. He would > love to have a way to have the commit-id of HEAD of the export contained > in one of the files he exported that way. Is there infrastructure in git > that makes that already possible or does he need to some kind of > gerneration tool by himself? Maybe it would be helpful if the > git-tar-tree would generate a file .commitid or something like that in > the generated tar tree.
Hmm, doesn't seem like git-tar-tree (or git-archive for that matter) supports this out of the box. Maybe it's possible to achieve in combination with the $Id$ construct?
I guess it depends on whether git-tar-tree/git-archive actually does a checkout from the repo from which the archive is made. If so, it should be possible to store "$Id$" in .commitid, and check it in, and it should automagically appear with the correct commit-id in your archive.
Of course, it all depends on whether the $Id$ conversion is triggered by git-archive...
Have fun!
...Johan
-- Johan Herland, <johan@herland.net> www.herland.net