MCPcopy Index your code
hub / github.com/git/git / is_missing_file_error

Function is_missing_file_error

git-compat-util.h:1062–1065  ·  view source on GitHub ↗

* Our code often opens a path to an optional file, to work on its * contents when we can successfully open it. We can ignore a failure * to open if such an optional file does not exist, but we do want to * report a failure in opening for other reasons (e.g. we got an I/O * error, or the file is there, but we lack the permission to open). * * Call this function after seeing an error from ope

Source from the content-addressed store, hash-verified

1060 * see if the errno indicates a missing file that we can safely ignore.
1061 */
1062static inline int is_missing_file_error(int errno_)
1063{
1064 return (errno_ == ENOENT || errno_ == ENOTDIR);
1065}
1066
1067int cmd_main(int, const char **);
1068

Callers 13

check_filenameFunction · 0.85
access_error_is_okFunction · 0.85
remove_pathFunction · 0.85
check_removedFunction · 0.85
run_updateFunction · 0.85
check_to_createFunction · 0.85
process_lstat_errorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected