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

git add -p doesn't honor diff.noprefix config

From
Ppaddor <paddor@gmail.com>
Date
Dec 3, 2016, 06:45 UTC
Message-ID
<E1D7329A-A54B-4D09-A72A-62ECA8005752@gmail.com>
Hi all
I set the config diff.noprefix = true because I don't like the a/ and b/ prefixes, which nicely changed the output of `git diff`. Unfortunately, the filenames in the output of `git add --patch` are still prefixed.
To me, this seems like a bug. Or there's a config option missing.

Best regards, Patrik

Next: Jeff King
Message 1 of 2 in “git add -p doesn't honor diff.noprefix config”
  1. paddorDec 3, 2016
  2. Jeff KingDec 6, 2016

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.