Skip to content
Commit 335ec3bf authored by Jeff King's avatar Jeff King Committed by Junio C Hamano
Browse files

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:

ef90ab66 (pickaxe: use textconv for -S counting, 2012-10-28)
b1c2f57d (diff_grep: use textconv buffers for add/deleted files, 2012-10-28)
0508fe53 (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,
even when requested by --textconv.

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: default avatarJeff King <peff@peff.net>
Signed-off-by: default avatarMichael J Gruber <git@drmicha.warpmail.net>
Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
parent 97f6a9c9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment