diff options
author | Chandra Pratap <chandrapratap3519@gmail.com> | 2024-02-14 17:50:48 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2024-02-14 11:06:28 -0800 |
commit | c431a235e226daef39091940c7db4ab5067d4643 (patch) | |
tree | 889cd0672ae2757e446c5ec5459374ca7e06e311 /commit.c | |
parent | efb050becb6bc703f76382e1f1b6273100e6ace3 (diff) |
t9146: replace test -d/-e/-f with appropriate test_path_is_* function
The helper functions test_path_is_* provide better debugging
information than test -d/-e/-f.
Replace "if ! test -d then <error message>" and "test -d" with
"test_path_is_dir" at places where we check for existent directories.
Replace "test -f" with "test_path_is_file" at places where we check
for existent files.
Replace "test ! -e" and "if test -d then <error message>" with
"test_path_is_missing" where we check for non-existent directories.
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Chandra Pratap <chandrapratap3519@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions