Re: [RFC/PATCH 1/1] format-patch: add an option to record base tree info

From: H. Peter Anvin
Date: Tue Feb 23 2016 - 20:41:28 EST


On 02/23/2016 01:49 PM, Eric W. Biederman wrote:
>
> So I could really respect a patch header line that said:
> tree abcdef0123456789...0123456789abcdef
>
> Where the numbers where the truncated tree hash before and after a patch
> was applied. That would seem to give a little bit of extra sanity
> checking in the application of git diffs as well.
>

I would rather have the untruncated base tree ID. The truncated file
IDs already provide the verification component, and it is *way* cheaper
to search for an untruncated ID.

-hpa