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

Re: git bug?

From
JGJeff Garzik <jgarzik@pobox.com>
Date
Jun 9, 2005, 08:01 UTC
Message-ID
<42A7F769.2050800@pobox.com>
In-Reply-To
<7vzmu0otg8.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 15 quoted lines
> Jeff, I assume you are talking about this part:
> 
> 
>>>diff --git a/arch/arm/mm/minicache.c b/arch/arm/mm/minicache.c
>>>deleted file mode 100644
>>>diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
> 
> 
> that does not have anything between "deleted file..." and the
> next diff about libata-core.c.
> 
> In short, this is not really a "bug", but I am open to
> suggestions for improvements (but you need to talk Linus into
> accepting the changes, because changing this would also affect
> his "git-apply" program as well).
It's a bug and a new behavior.
'git-diff-cache -p HEAD' should not show files that I have not modified.
This screws up
	git-diff-cache -p HEAD | diffstat -p1 | awk '{print $1}'
for example.
	Jeff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 5 in “git bug?”
  1. Jeff GarzikJun 9, 2005
  2. Jeff GarzikJun 9, 2005
  3. Junio C HamanoJun 9, 2005
  4. Jeff GarzikJun 9, 2005
  5. Junio C HamanoJun 9, 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.