git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [Bug report] diff.noprefix config is ignored for interactive `add`
@ 2021-04-06 10:15 Nikita Bobko
  2021-04-06 21:36 ` Jeff King
  0 siblings, 1 reply; 4+ messages in thread
From: Nikita Bobko @ 2021-04-06 10:15 UTC (permalink / raw)
  To: git

Steps to reproduce:
1. Run `git -c diff.noprefix=true add -p`

Expected behavior:
`a/` and `b/` prefixes are not shown during interactive `add`
like this:
```
diff --git foo foo
index 257cc56..1715acd 100644
--- foo
+++ foo
@@ -1 +1 @@
-foo
+bar
(1/1) Stage this hunk [y,n,q,a,d,e,?]?
```

Actual behavior:
`a/` and `b/` prefixes are shown instead. Like this:
```
diff --git a/foo b/foo
index 257cc56..1715acd 100644
--- a/foo
+++ b/foo
@@ -1 +1 @@
-foo
+bar
(1/1) Stage this hunk [y,n,q,a,d,e,?]?
```

[System Info]
git version:
git version 2.30.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.4.98-1-lts #1 SMP Sat, 13 Feb 2021 19:22:14 +0000 x86_64
compiler info: gnuc: 10.2
libc info: glibc: 2.33
$SHELL (typically, interactive shell): /bin/zsh

[Enabled Hooks]

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-04-06 22:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-06 10:15 [Bug report] diff.noprefix config is ignored for interactive `add` Nikita Bobko
2021-04-06 21:36 ` Jeff King
2021-04-06 21:57   ` Junio C Hamano
2021-04-06 22:47     ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).