From: Jeff King Date: Thu, 2 Feb 2012 08:19:37 +0000 (-0500) Subject: convert git-grep to use grep_source interface X-Git-Tag: v1.7.9.2~12^2~5 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/8f24a6323ece9be1bf1a04b4b5856112438337f2?ds=sidebyside;hp=8f24a6323ece9be1bf1a04b4b5856112438337f2 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 Signed-off-by: Junio C Hamano ---