Re: [RFC/PATCH 1/1] format-patch: add an option to record base tree info
- From
- H. Peter Anvin <hpa@zytor.com>
- Date
- Feb 24, 2016, 01:40 UTC
- Message-ID
- <56CD0A1D.9050207@zytor.com>
- In-Reply-To
- <87bn77hzbp.fsf@x220.int.ebiederm.org>
On 02/23/2016 01:49 PM, Eric W. Biederman wrote:
Show 8 quoted lines
> > 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