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

Bug in "git diff-files"

From
Vampire <vampire@masters-of-disaster.de>
Date
Feb 10, 2011, 17:56 UTC
Message-ID
<4D5426B7.9010007@Masters-of-Disaster.de>
Hi,

I found a bug in git diff-files. git diff-files with a --diff-filter and --quiet given behaves bad. I have a diff-filter of U and one file M and one U. But diff-lib.c:105-107 in commit 1a9fe45 stops as soon as HAS_CHANGES is true. In my case it found the M file and stops searching as --quiet is given. But then when applying the diff-filter, this M instance is filtered out and thus 0 is returned instead of 1 which is returned with --exit-code and without --quiet.

Regards Björn Kautler

Message 1 of 1 in “Bug in "git diff-files"”
  1. VampireFeb 10, 2011

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.