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. ;) > 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@xxxxxxxxxxx> www.herland.net - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html