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

Function entry_is_binary

archive-zip.c:281–290  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281static int entry_is_binary(struct index_state *istate, const char *path,
282 const void *buffer, size_t size)
283{
284 struct userdiff_driver *driver = userdiff_find_by_path(istate, path);
285 if (!driver)
286 driver = userdiff_find_by_name("default");
287 if (driver->binary != -1)
288 return driver->binary;
289 return buffer_is_binary(buffer, size);
290}
291
292#define STREAM_BUFFER_SIZE (1024 * 16)
293

Callers 1

write_zip_entryFunction · 0.85

Calls 3

userdiff_find_by_pathFunction · 0.85
userdiff_find_by_nameFunction · 0.85
buffer_is_binaryFunction · 0.85

Tested by

no test coverage detected