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

Function is_empty_or_missing_file

wrapper.c:737–748  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

735}
736
737int is_empty_or_missing_file(const char *filename)
738{
739 struct stat st;
740
741 if (stat(filename, &st) < 0) {
742 if (errno == ENOENT)
743 return 1;
744 die_errno(_("could not stat %s"), filename);
745 }
746
747 return !st.st_size;
748}
749
750int open_nofollow(const char *path, int flags)
751{

Callers 9

die_user_resolveFunction · 0.85
am_runFunction · 0.85
am_resolveFunction · 0.85
check_and_set_termsFunction · 0.85
decide_nextFunction · 0.85
bisect_startFunction · 0.85
file_is_not_emptyFunction · 0.85
bisect_logFunction · 0.85
bisect_replayFunction · 0.85

Calls 2

die_errnoFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected