bug: git-add --patch any negative pathspec fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux