summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorDorcas AnonoLitunya <anonolitunya@gmail.com>2023-10-18 15:45:12 +0300
committerJunio C Hamano <gitster@pobox.com>2023-10-18 16:57:49 -0700
commit5abb758118ebbc85fce114176722670c858f4b62 (patch)
tree71251d56573e388e48b2576e79653f1609ea18a0 /builtin/commit.c
parent813d9a91884e0afecec8ccf8e33909c405ee1d3f (diff)
t7601: use "test_path_is_file" etc. instead of "test -f"
Some tests in t7601 use "test -f" and "test ! -f" to see if a path exists or is missing. Use test_path_is_file and test_path_is_missing helper functions to clarify these tests a bit better. This especially matters for the "missing" case because "test ! -f F" will be happy if "F" exists as a directory, but the intent of the test is that "F" should not exist, even as a directory. The updated code expresses this better. Signed-off-by: Dorcas AnonoLitunya <anonolitunya@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions