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

Function grep_source_load_driver

grep.c:1996–2008  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1994}
1995
1996void grep_source_load_driver(struct grep_source *gs,
1997 struct index_state *istate)
1998{
1999 if (gs->driver)
2000 return;
2001
2002 grep_attr_lock();
2003 if (gs->path)
2004 gs->driver = userdiff_find_by_path(istate, gs->path);
2005 if (!gs->driver)
2006 gs->driver = userdiff_find_by_name("default");
2007 grep_attr_unlock();
2008}
2009
2010static int grep_source_is_binary(struct grep_source *gs,
2011 struct index_state *istate)

Callers 4

match_funcnameFunction · 0.85
grep_source_1Function · 0.85
grep_source_is_binaryFunction · 0.85
add_workFunction · 0.85

Calls 4

grep_attr_lockFunction · 0.85
userdiff_find_by_pathFunction · 0.85
userdiff_find_by_nameFunction · 0.85
grep_attr_unlockFunction · 0.85

Tested by

no test coverage detected