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

Function grep_source_load

grep.c:1980–1994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1978}
1979
1980static int grep_source_load(struct grep_source *gs)
1981{
1982 if (gs->buf)
1983 return 0;
1984
1985 switch (gs->type) {
1986 case GREP_SOURCE_FILE:
1987 return grep_source_load_file(gs);
1988 case GREP_SOURCE_OID:
1989 return grep_source_load_oid(gs);
1990 case GREP_SOURCE_BUF:
1991 return gs->buf ? 0 : -1;
1992 }
1993 BUG("invalid grep_source type to load");
1994}
1995
1996void grep_source_load_driver(struct grep_source *gs,
1997 struct index_state *istate)

Callers 2

fill_textconv_grepFunction · 0.85
grep_source_is_binaryFunction · 0.85

Calls 2

grep_source_load_fileFunction · 0.85
grep_source_load_oidFunction · 0.85

Tested by

no test coverage detected