]> git.ipfire.org Git - thirdparty/git.git/commit
grep: -f <path> is relative to $cwd
authorJunio C Hamano <gitster@pobox.com>
Thu, 12 Oct 2023 17:28:16 +0000 (10:28 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 12 Oct 2023 17:41:59 +0000 (10:41 -0700)
commit5b2424b658701c16e4fe12babf83fdb15d0f165a
tree1947578bcec1394ba07570580a8a8cc50b27f767
parent43c8a30d150ecede9709c1f2527c8fba92c65f40
grep: -f <path> is relative to $cwd

Just like OPT_FILENAME() does, "git grep -f <path>" should treat
the <path> relative to the original $cwd by paying attention to the
prefix the command is given.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c
t/t7810-grep.sh