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

Function grep_source_is_binary

grep.c:2010–2021  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2008}
2009
2010static int grep_source_is_binary(struct grep_source *gs,
2011 struct index_state *istate)
2012{
2013 grep_source_load_driver(gs, istate);
2014 if (gs->driver->binary != -1)
2015 return gs->driver->binary;
2016
2017 if (!grep_source_load(gs))
2018 return buffer_is_binary(gs->buf, gs->size);
2019
2020 return 0;
2021}

Callers 1

grep_source_1Function · 0.85

Calls 3

grep_source_load_driverFunction · 0.85
grep_source_loadFunction · 0.85
buffer_is_binaryFunction · 0.85

Tested by

no test coverage detected