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

Function is_missing_file

wrapper.c:724–735  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722}
723
724int is_missing_file(const char *filename)
725{
726 struct stat st;
727
728 if (stat(filename, &st) < 0) {
729 if (errno == ENOENT)
730 return 1;
731 die_errno(_("could not stat %s"), filename);
732 }
733
734 return 0;
735}
736
737int is_empty_or_missing_file(const char *filename)
738{

Callers 2

git_config_pathnameFunction · 0.85
do_get_valueFunction · 0.85

Calls 2

die_errnoFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected