aboutsummaryrefslogtreecommitdiff
path: root/grep.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-02-02 03:19:37 -0500
committerJunio C Hamano <gitster@pobox.com>2012-02-02 10:36:08 -0800
commit8f24a6323ece9be1bf1a04b4b5856112438337f2 (patch)
tree0a6728ca7f560af5b8bccbfac32f059c758414ac /grep.c
parente1327023ea22c3bf57e7d28596da356043f073fc (diff)
downloadgit-8f24a6323ece9be1bf1a04b4b5856112438337f2.tar.gz
git-8f24a6323ece9be1bf1a04b4b5856112438337f2.tar.xz
convert git-grep to use grep_source interface
The grep_source interface (as opposed to grep_buffer) will eventually gives us a richer interface for telling the low-level grep code about our buffers. Eventually this will lead to things like better binary-file handling. For now, it lets us drop a lot of now-redundant code. The conversion is mostly straight-forward. One thing to note is that the memory ownership rules for "struct grep_source" are different than the "struct work_item" found here (the former will copy things like the filename, rather than taking ownership). Therefore you will also see some slight tweaking of when filename buffers are released. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'grep.c')
0 files changed, 0 insertions, 0 deletions