summaryrefslogtreecommitdiff
path: root/builtin-diff.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <junkio@cox.net>2006-09-17 16:02:52 -0700
committerLibravatar Junio C Hamano <junkio@cox.net>2006-09-20 11:14:38 -0700
commit83b5d2f5b0c95fe102bc3d1cc2947abbdf5e5c5b (patch)
tree16348287b2cb6ebdba2e5068467b6b592b3ec3c7 /builtin-diff.c
parentgitweb: Fix thinko in git_tags and git_heads (diff)
downloadtgif-83b5d2f5b0c95fe102bc3d1cc2947abbdf5e5c5b.tar.xz
builtin-grep: make pieces of it available as library.
This makes three functions and associated option structures from builtin-grep available from other parts of the system. * options to drive built-in grep engine is stored in struct grep_opt; * pattern strings and extended grep expressions are added to struct grep_opt with append_grep_pattern(); * when finished calling append_grep_pattern(), call compile_grep_patterns() to prepare for execution; * call grep_buffer() to find matches in the in-core buffer. This also adds an internal option "status_only" to grep_opt, which suppresses any output from grep_buffer(). Callers of the function as library can use it to check if there is a match without producing any output. Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'builtin-diff.c')
0 files changed, 0 insertions, 0 deletions