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

[PATCH 0/2] git-blame bug

From
BWBen Willard <benwillard@gmail.com>
Date
Jun 2, 2009, 19:28 UTC
Message-ID
<cover.1243969358.git.benwillard@gmail.com>
Hi,
I ran across this git-blame failure the other day: if a directory is deleted
and a file is created with the same name in a single commit, then git blame
will fail on it with this error:
	fatal: internal error in blame::find_origin
	
Anyway, patch 1/2 shows this failure with a test, and 2/2 is a possible fix.
They should apply on maint. 

Thanks, -- Ben

Ben Willard (2):
  t8006: Add test to show blame failure
  blame: Fix corner case when a directory becomes a file
 builtin-blame.c  |   12 ++++++++----
 t/t8006-blame.sh |   21 +++++++++++++++++++++
 2 files changed, 29 insertions(+), 4 deletions(-)
 create mode 100755 t/t8006-blame.sh
Next: Ben Willard
Message 1 of 5 in “git-blame bug”
  1. 0/2 git-blame bugBen Willard, Jun 2, 2009
  2. 1/2 t8006: Add test to show blame failureBen Willard, Jun 2, 2009
  3. 2/2 blame: Fix corner case when a directory becomes a fileBen Willard, Jun 2, 2009
  4. Junio C HamanoJun 3, 2009
  5. Ben WillardJun 3, 2009

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.