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

Function grep_buffer

grep.c:1868–1879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1866}
1867
1868int grep_buffer(struct grep_opt *opt, const char *buf, unsigned long size)
1869{
1870 struct grep_source gs;
1871 int r;
1872
1873 grep_source_init_buf(&gs, buf, size);
1874
1875 r = grep_source(opt, &gs);
1876
1877 grep_source_clear(&gs);
1878 return r;
1879}
1880
1881void grep_source_init_file(struct grep_source *gs, const char *name,
1882 const char *path)

Callers 1

commit_matchFunction · 0.85

Calls 3

grep_source_init_bufFunction · 0.85
grep_source_clearFunction · 0.85
grep_sourceFunction · 0.70

Tested by

no test coverage detected