From: Sylvain Rabot Date: Tue, 19 Jul 2011 20:10:07 GMT Subject: Re: git-archive and tar options Message-ID: <1311106207.17539.12.camel@kheops> In-Reply-To: On Thu, 2011-07-14 at 19:48 +0200, Andreas Schwab wrote: > Jeff King writes: > > > So you're probably stuck with extracting the results of "git archive" to > > a temporary directory and then using GNU tar to re-archive them (or if > > you have a checkout, you can just tar that up directly, feeding the list > > from "git ls-files" into tar). > > That would lose the embedded commit-id, though. > > Andreas. > You can pass the commit id this way. $ tar --pax-option "comment=$COMMIT" ... -- Sylvain Rabot