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 /t/t3904-stash-patch.sh | |
parent | grep: refactor the concept of "grep source" into an object (diff) | |
download | tgif-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 't/t3904-stash-patch.sh')
0 files changed, 0 insertions, 0 deletions