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

Function fill_filespec

diff.c:4373–4381  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4371}
4372
4373void fill_filespec(struct diff_filespec *spec, const struct object_id *oid,
4374 int oid_valid, unsigned short mode)
4375{
4376 if (mode) {
4377 spec->mode = canon_mode(mode);
4378 oidcpy(&spec->oid, oid);
4379 spec->oid_valid = oid_valid;
4380 }
4381}
4382
4383/*
4384 * Given a name and sha1 pair, if the index tells us the file in

Callers 15

add_pairFunction · 0.85
fill_blob_sha1Function · 0.85
fill_textconv_grepFunction · 0.85
get_filespecFunction · 0.85
grab_blobFunction · 0.85
show_patch_diffFunction · 0.85
noindex_filespecFunction · 0.85
do_oneway_diffFunction · 0.85
diff_queue_addremoveFunction · 0.85
diff_queue_changeFunction · 0.85
diff_sameFunction · 0.85

Calls 2

canon_modeFunction · 0.85
oidcpyFunction · 0.85

Tested by

no test coverage detected