Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 1/2] merge-recursive.c: Fix case-changing merge.

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:01:03

Jonathan Nieder [off-list ref] writes:
quoted
Please make it a habit to use "test -f" when you expect "the path
exists as a file", not merely "something exists there I do not care
if it is a file or a directory", for which "test -e" is perfectly
appropriate.
Or, better in tests,

	test_path_is_file testcase

which prints an error instead of just silently failing when
the path is not a file.
Thanks, will tweak.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help