]> git.ipfire.org Git - thirdparty/git.git/commit
t1005: modernize "! test -f" to "test_path_is_missing"
authorTian Yuchen <a3205153416@gmail.com>
Sat, 17 Jan 2026 06:25:15 +0000 (14:25 +0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 17 Jan 2026 18:01:14 +0000 (10:01 -0800)
commitbc8556d06652c50bb0ab03dd75fe31a1909975a4
treeb2d0f891c4146fde3f2b5704dba67b02b9d2dd10
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
t1005: modernize "! test -f" to "test_path_is_missing"

Replace instances of "! test -f <file>" with "test_path_is_missing <file>".
This macro provides better diagnostics when the test fails (it prints
"Path exists:" instead of silently failing).

Signed-off-by: Tian Yuchen <a3205153416@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1005-read-tree-reset.sh