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

Re: [PATCH] git-blame shouldn't crash if run in an unmerged tree

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Oct 18, 2007, 22:38 UTC
Message-ID
<alpine.LFD.0.999.0710181529490.26902@woody.linux-foundation.org>
In-Reply-To
<20071018063407.GA28861@spearce.org>
On Thu, 18 Oct 2007, Shawn O. Pearce wrote:
Show 5 quoted lines
>
> I'm applying this patch to my maint tree tonight as it does resolve
> the issue for now.  What surprised me was the file that we were
> crashing out on wasn't even the file we wanted to get the blame
> data for.  :-\

Please feel free to add a Signed-off-by: there. I guess I didn't add it in the original email, because I wasn't sure if I'd have the energy to see if I could just remove the clearing of "ce_mode". I never did.

That whole "ce->ce_mode = 0" thing is really hacky, and we use it for two totally different things ("git read-tree" uses it for "delete this entry", and reading the index uses it when you ask for only merged entries). Bad form, and not very logical.

		Linus
Previous: Björn Steinbrink
Message 4 of 4 in “git-blame shouldn't crash if run in an unmerged tree”
  1. git-blame shouldn't crash if run in an unmerged treeShawn O. Pearce, Oct 18, 2007
  2. Björn SteinbrinkOct 18, 2007
  3. Björn SteinbrinkOct 18, 2007
  4. Linus TorvaldsOct 18, 2007

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.