Re: [PATCH] pack-objects: name pack files after trailer hash
On Thu, Dec 5, 2013 at 12:28 PM, Jeff King <peff@peff.net> wrote:
Show 7 quoted lines
> Subject: pack-objects: name pack files after trailer hash
>
> Our current scheme for naming packfiles is to calculate the
> sha1 hash of the sorted list of objects contained in the
> packfile. This gives us a unique name, so we are reasonably
> sure that two packs with the same name will contain the same
> objects.
Yay-by: Shawn Pearce <spearce@spearce.org>
Show 5 quoted lines
> ---
> pack-write.c | 8 +-------
> pack.h | 2 +-
> t/t5302-pack-index.sh | 4 ++--
> 3 files changed, 4 insertions(+), 10 deletions(-)
Obviously this is correct given the diffstat. :-)