git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bug: git-add --patch any negative pathspec fails
@ 2021-12-16 19:09 Erik Cervin Edin
  2021-12-16 20:02 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Erik Cervin Edin @ 2021-12-16 19:09 UTC (permalink / raw)
  To: git

Steps to reproduce:
git-add -p -- ':!foo'

Expected:
Add everything that doesn't match the pathspec.

Actual:
fatal: empty string is not a valid pathspec. please use . instead if
you meant to match all paths
Cannot close git diff-index --cached --numstat --summary HEAD --
:(exclude,prefix:0)bar  () at C:/Program
Files/Git/mingw64/libexec/git-core\git-add--interactive line 242.

Relevant trace:
19:44:00.359141 run-command.c:667       trace: run_command: git
add--interactive --patch -- ':(exclude,prefix:0)bar' ''
Note the added empty string pathspec

Affects:
git version 2.31.1.windows.1

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

end of thread, other threads:[~2021-12-16 20:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-16 19:09 bug: git-add --patch any negative pathspec fails Erik Cervin Edin
2021-12-16 20:02 ` Jeff King

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 NNTP newsgroup(s).