grep: allow to use textconv filters
commit5bb6a84035d0303b949f953495f2f7f0ea054ada
authorJeff King <peff@peff.net>
Wed, 30 Jan 2013 16:09:39 +0000 (30 17:09 +0100)
committerMichael J Gruber <git@drmicha.warpmail.net>
Fri, 10 May 2013 11:48:43 +0000 (10 13:48 +0200)
tree1d6945bf63dd93c2a59a4f4dbbdec1eff4aa3503
parent741384f614c9ed1cb36da6d9e014b2839209a3cc
grep: allow to use textconv filters

Recently and not so recently, we made sure that log/grep type operations
use textconv filters when a userfacing diff would do the same:

ef90ab6 (pickaxe: use textconv for -S counting, 2012-10-28)
b1c2f57 (diff_grep: use textconv buffers for add/deleted files, 2012-10-28)
0508fe5 (combine-diff: respect textconv attributes, 2011-05-23)

"git grep" currently does not use textconv filters at all, that is
neither for displaying the match and context nor for the actual grepping.

Introduce an option "--textconv" which makes git grep use any configured
textconv filters for grepping and output purposes. It is off by default.

Signed-off-by: Jeff King <peff@peff.net>
Documentation/git-grep.txt
builtin/grep.c
grep.c
grep.h
t/t7008-grep-binary.sh