Re: [PATCH] Add git-bundle - pack objects and references for disconnected transfer
- From
Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
- Date
- Feb 16, 2007, 11:57 UTC
- Message-ID
- <45D59C20.6050708@fs.ei.tum.de>
- In-Reply-To
- <20070216065421.GG28894@spearce.org>
Shawn O. Pearce wrote:
Show 9 quoted lines
> Mark Levedahl <mdl123@verizon.net> wrote: >> +# create the tar file, clean up >> +tar cf "$bfile" --absolute-names --transform="s,$tmp-,," \ >> + --verbose --show-transformed-names \ >> + "$references" "$pack" > > I'm not sure this will work on FreeBSD. Both 5.1 and 6.1 use tar > that does not know about --absolute-names, --transform, --verbose, > or --show-transformed-names.
for portability, pax is the official choice :) and it can even do path name modifications with -s. but why again are we using tar there? this data could easiliy be put in one mixed text/binary file, starting out with
#!/bin/sh echo "This is a git bundle. Use git-unbundle to process me." >&1 exit ### DATA ###
or so
cheers simon
-- Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\ Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ / Party Enjoy Relax | http://dragonflybsd.org Against HTML \ Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \