]> git.ipfire.org Git - thirdparty/git.git/commit - apply.c
treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked
authorJunio C Hamano <gitster@pobox.com>
Tue, 30 May 2017 00:23:33 +0000 (09:23 +0900)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 May 2017 00:29:00 +0000 (09:29 +0900)
commitc7054209d65db430bdbcb2243288e63cea3e417c
tree215774833cded6430026ed7c88a646143223c28e
parentdc5a18b3643553cacd6f1a3e4bff6a678b067055
treewide: use is_missing_file_error() where ENOENT and ENOTDIR are checked

Using the is_missing_file_error() helper introduced in the previous
step, update all hits from

  $ git grep -e ENOENT --and -e ENOTDIR

There are codepaths that only check ENOENT, and it is possible that
some of them should be checking both.  Updating them is kept out of
this step deliberately, as we do not want to change behaviour in this
step.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
apply.c
builtin/rm.c
builtin/update-index.c
diff-lib.c
dir.c
setup.c
sha1_name.c
wrapper.c