Re: git-archive and tar options
On Thu, 2011-07-14 at 19:48 +0200, Andreas Schwab wrote:
Show 11 quoted lines
> Jeff King <peff@peff.net> 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 <sylvain@abstraction.fr>