MCPcopy Create free account
hub / github.com/git/git / xsize_t

Function xsize_t

git-compat-util.h:917–922  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

915}
916
917static inline size_t xsize_t(off_t len)
918{
919 if (len < 0 || (uintmax_t) len > SIZE_MAX)
920 die("Cannot handle files this big");
921 return (size_t) len;
922}
923
924/*
925 * Like skip_prefix, but compare case-insensitively. Note that the comparison

Callers 15

open_midx_bitmap_1Function · 0.85
open_pack_bitmap_1Function · 0.85
grep_source_load_fileFunction · 0.85
map_fdFunction · 0.85
index_fdFunction · 0.85
read_mmfileFunction · 0.85
check_packed_git_idxFunction · 0.85
use_packFunction · 0.85
should_prune_worktreeFunction · 0.85
show_patch_diffFunction · 0.85

Calls 1

dieFunction · 0.70

Tested by

no test coverage detected