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

Re: gitk shows an empty line between "Comments" and changed files

From
Linus Torvalds <torvalds@osdl.org>
Date
Oct 29, 2005, 03:07 UTC
Message-ID
<Pine.LNX.4.64.0510282003360.3348@g5.osdl.org>
In-Reply-To
<7vslul2g29.fsf@assigned-by-dhcp.cox.net>
On Fri, 28 Oct 2005, Junio C Hamano wrote:
Show 9 quoted lines
> 
> Sorry you lost me.  I am not sure what you mean by "without
> actually doing anything" part.  The input to patch-id command in
> the above pipe is (commit-object-name patch)*.  The command
> reads such a stream, and transforms it to a (patch-id
> commit-object-name)* stream.  In other words, the input
> identifies each patch with a commit-object-name, and the command
> condenses each patch to a patch-id, and spits them out, labelled
> with commit-object-name.

Note that git-patch-id will happily take a patch without the commit ID at the head, it just won't have a commit ID to match it up with. For such patches it will just spit it out with an all-zero commit-object-name.

And that's very much by design. The point is that you can match up your (perhaps non-git) patches with what has been accepted. Which is why git-patch-id should always take non-git patches too, and then you can match them up by sorting by patch ID and doing "join -1" to match up duplicates.

So git-patch-id will work with or without the commit ID, but the commit ID is then later needed to figure out _which_ commit you matched up.

		Linus
Previous: Junio C HamanoNext: Pavel Roskin
Message 8 of 11 in “gitk shows an empty line between "Comments" and changed files”
  1. Pavel RoskinOct 27, 2005
  2. Junio C HamanoOct 27, 2005
  3. Pavel RoskinOct 28, 2005
  4. Junio C HamanoOct 28, 2005
  5. Pavel RoskinOct 28, 2005
  6. Linus TorvaldsOct 28, 2005
  7. Junio C HamanoOct 29, 2005
  8. Linus TorvaldsOct 29, 2005
  9. Pavel RoskinOct 29, 2005
  10. Linus TorvaldsOct 29, 2005
  11. Pavel RoskinOct 29, 2005

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.