From: Shawn O. Pearce Date: Wed, 14 Feb 2007 19:42:37 GMT Subject: Re: [PATCH] git-bundle - bundle objects and references for disconnected transfer. Message-ID: <20070214194237.GC28290@spearce.org> In-Reply-To: <11714622292295-git-send-email-mdl123@verizon.net> Mark Levedahl wrote: > +# add the pack file > +(git-rev-list --objects $gitrevargs | \ > + cut -b -40 | \ > + git pack-objects --all-progress --progress --stdout >.gitBundlePack) \ > + || (rm -f "$bfile" ; exit) pack-objects can run a rev-list internally; which means this can be written as: echo $gitrevargs | \ git pack-objects --all-progress --progress --stdout --revs >.gitBundlePack \ || (rm -f "$bfile" ; exit) -- Shawn.