From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755225AbcBXBlZ (ORCPT ); Tue, 23 Feb 2016 20:41:25 -0500 Received: from terminus.zytor.com ([198.137.202.10]:53640 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753899AbcBXBlX (ORCPT ); Tue, 23 Feb 2016 20:41:23 -0500 Subject: Re: [RFC/PATCH 1/1] format-patch: add an option to record base tree info To: "Eric W. Biederman" References: <1456109938-8568-1-git-send-email-xiaolong.ye@intel.com> <1456109938-8568-2-git-send-email-xiaolong.ye@intel.com> <20160223014741.GA21025@wfg-t540p.sh.intel.com> <20160223091740.GA3830@wfg-t540p.sh.intel.com> <87d1rnjil4.fsf@x220.int.ebiederm.org> <3FAB2030-8106-4114-99A4-B04A8A0D22FB@zytor.com> <87bn77hzbp.fsf@x220.int.ebiederm.org> Cc: Junio C Hamano , Fengguang Wu , Xiaolong Ye , git@vger.kernel.org, ying.huang@intel.com, philip.li@intel.com, julie.du@intel.com, Linus Torvalds , Christoph Hellwig , Dan Carpenter , LKML From: "H. Peter Anvin" Message-ID: <56CD0A1D.9050207@zytor.com> Date: Tue, 23 Feb 2016 17:40:45 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.0 MIME-Version: 1.0 In-Reply-To: <87bn77hzbp.fsf@x220.int.ebiederm.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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