Re: [PATCH v2] pack-objects: Allow missing base objects when creating thin packs
- Date: Tue, 12 Aug 2008 14:43:45 -0400 (EDT)
- From: Nicolas Pitre <nico@xxxxxxx>
- Subject: Re: [PATCH v2] pack-objects: Allow missing base objects when creating thin packs
On Tue, 12 Aug 2008, Shawn O. Pearce wrote:
> If we are building a thin pack and one of the base objects we would
> consider for deltification is missing its OK, the other side already
> has that base object. We may be able to get a delta from another
> object, or we can simply send the new object whole (no delta).
>
> This change allows a shallow clone to store only the objects which
> are unique to it, as well as the boundary commit and its trees, but
> avoids storing the boundary blobs. This special form of a shallow
> clone is able to represent just the difference between two trees.
>
> Pack objects change suggested by Nicolas Pitre.
>
> Signed-off-by: Shawn O. Pearce <spearce@xxxxxxxxxxx>
> ---
>
> Nicolas Pitre <nico@xxxxxxx> wrote:
> > On Tue, 12 Aug 2008, Shawn O. Pearce wrote:
> > I'm not talking about the last command but the "test $(git rev-parse
> > HEAD) = $B" line.
>
> Oh, right. Good catch.
Acked-by: Nicolas Pitre <nico@xxxxxxx>
> +++ b/t/t5306-pack-nobase.sh
> @@ -0,0 +1,80 @@
> +#!/bin/sh
> +#
> +# Copyright (c) 2008 Google Inc.
Heh. ;-)
Nicolas
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html