summaryrefslogtreecommitdiff
path: root/builtin/grep.c
diff options
context:
space:
mode:
authorLibravatar COGONI Guillaume <cogoni.guillaume@gmail.com>2022-02-22 22:54:29 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-02-23 15:08:44 -0800
commit456296b5d1f05ca16949e7d37ae87f5750118564 (patch)
tree9a799a0c1724dee01338e8e44cab2c300a921432 /builtin/grep.c
parentt/t3903-stash.sh: replace test [-d|-f] with test_path_is_* (diff)
downloadtgif-456296b5d1f05ca16949e7d37ae87f5750118564.tar.xz
tests: allow testing if a path is truly a file or a directory
Add test_path_is_file_not_symlink(), test_path_is_dir_not_symlink() and test_path_is_symlink(). Case of use for the first one in test t/t3903-stash.sh to replace "test -f" because that function explicitly want the file not to be a symlink. Give more friendly error message. Signed-off-by: COGONI Guillaume <cogoni.guillaume@gmail.com> Co-authored-by: BRESSAT Jonathan <git.jonathan.bressat@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/grep.c')
0 files changed, 0 insertions, 0 deletions