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

Re: BUG: git diff --name-only ignores --ignore-*

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 26, 2021, 18:42 UTC
Message-ID
<xmqqwno8dp4b.fsf@gitster.g>
In-Reply-To
<CALhB_QNZJtUoSEE==xBoX3cTxE4duB+QqsSzuyeY7JFMh7sKhQ@mail.gmail.com>
Stefan Hoffmeister <stefan.hoffmeister@gmail.com> writes:
> When using the --name-only option on git diff (git 2.33.0),
> command-line parameters such as  --ignore-blank-lines are not
> respected.
I think I've seen something related this one at around
  https://lore.kernel.org/git/xmqq4kkl1atq.fsf@gitster.c.googlers.com/
(look for mention of --name-only in the message).

It would make things more expensive to make --name-only inspect changes when these options are in effect (iow, the --name-only currently is about "are these the same blob object? if not, show the path" and nothing else) but it would probably be OK, as the user expresses their willingness to spend extra cycles by explicitly giving --ignore-* options.

Previous: Stefan Hoffmeister
Message 2 of 2 in “BUG: git diff --name-only ignores --ignore-*”
  1. Stefan HoffmeisterAug 26, 2021
  2. Junio C HamanoAug 26, 2021

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.