diff options
author | Jeff King <peff@peff.net> | 2012-02-02 03:19:37 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-02 10:36:08 -0800 |
commit | 8f24a6323ece9be1bf1a04b4b5856112438337f2 (patch) | |
tree | 0a6728ca7f560af5b8bccbfac32f059c758414ac /revision.c | |
parent | e1327023ea22c3bf57e7d28596da356043f073fc (diff) | |
download | git-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 'revision.c')
0 files changed, 0 insertions, 0 deletions