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

Function hash_filespec

diffcore-rename.c:264–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262};
263
264static unsigned int hash_filespec(struct repository *r,
265 struct diff_filespec *filespec)
266{
267 if (!filespec->oid_valid) {
268 if (diff_populate_filespec(r, filespec, NULL))
269 return 0;
270 hash_object_file(r->hash_algo, filespec->data, filespec->size,
271 OBJ_BLOB, &filespec->oid);
272 }
273 return oidhash(&filespec->oid);
274}
275
276static int find_identical_files(struct hashmap *srcs,
277 int dst_index,

Callers 2

find_identical_filesFunction · 0.85
insert_file_tableFunction · 0.85

Calls 3

diff_populate_filespecFunction · 0.85
hash_object_fileFunction · 0.85
oidhashFunction · 0.85

Tested by

no test coverage detected