git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] doc: don't claim that cherry-pick calls patch-id

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Sep 24, 2013, 22:44 UTC
Message-ID
<20130924224431.GU9464@google.com>
In-Reply-To
<20130924222822.GA2308@redhat.com>
Michael S. Tsirkin wrote:
> On Tue, Sep 24, 2013 at 03:14:09PM -0700, Jonathan Nieder wrote:
>> Michael S. Tsirkin wrote:
Show 11 quoted lines
>>> -The commits are compared with their 'patch id', obtained from
>>> -the 'git patch-id' program.
>>> +The diffs are compared with their diff id (sha1) calculated after removing
>>> +any whitespace and line numbers (similar but not necessarily identical
>>> +to 'patch id', obtained from the 'git patch-id' program).
>>
>> The hash used internally is just an implementation detail, so maybe this
>> sentence could just be dropped?
>
> I think the fact whitespace is ignored is relevant to users, no?
> We probably should drop talking about hash here.
Ah, good point.  So, something like the following, then?
	Whitespace and line numbers are ignored when comparing the diffs,
	similarly to linkgit:git-patch-id[1].

Maybe some other wording would make it clearer that we are not using "git diff -w" output.

Previous: Michael S. TsirkinNext: Michael S. Tsirkin
Message 4 of 7 in “doc: don't claim that cherry-pick calls patch-id”
  1. doc: don't claim that cherry-pick calls patch-idMichael S. Tsirkin, Sep 24, 2013
  2. Jonathan NiederSep 24, 2013
  3. Michael S. TsirkinSep 24, 2013
  4. Jonathan NiederSep 24, 2013
  5. Michael S. TsirkinSep 24, 2013
  6. Jonathan NiederSep 24, 2013
  7. Michael S. TsirkinSep 24, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.