From: Kristian Høgsberg Date: Thu, 17 May 2007 17:02:26 GMT Subject: Re: Commit ID in exported Tar Ball Message-ID: <59ad55d30705171002m503feb17l64fea9ffe2cf2297@mail.gmail.com> In-Reply-To: <20070517163803.GE4095@cip.informatik.uni-erlangen.de> On 5/17/07, Thomas Glanzmann wrote: > Hello, > Michae, a friend of mine, is in the phase of migrating from git to cvs. > 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. Use git-get-tar-commit-id: $ gzip -cd snapshot.tar.gz | git-get-tar-commit-id cheers, Kristian