Re: git-archive and tar options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2011-07-14 at 19:48 +0200, Andreas Schwab wrote:
> Jeff King <peff@xxxxxxxx> 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@xxxxxxxxxxxxxx>

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]