]> git.ipfire.org Git - thirdparty/git.git/commit - diffcore-pickaxe.c
pickaxe: use textconv for -S counting
authorJeff King <peff@peff.net>
Sun, 28 Oct 2012 12:27:12 +0000 (08:27 -0400)
committerJeff King <peff@peff.net>
Sun, 28 Oct 2012 12:48:17 +0000 (08:48 -0400)
commitef90ab66e8eaa863777a8d383c5af2ff43a426d2
treeed782976f7a4269e1107aa2cf4b462000d4fefa2
parent8fa4b09fb14339c5d62e65a88fde8b220cb1591b
pickaxe: use textconv for -S counting

We currently just look at raw blob data when using "-S" to
pickaxe. This is mostly historical, as pickaxe predates the
textconv feature. If the user has bothered to define a
textconv filter, it is more likely that their search string will be
on the textconv output, as that is what they will see in the
diff (and we do not even provide a mechanism for them to
search for binary needles that contain NUL characters).

This patch teaches "-S" to use textconv, just as we
already do for "-G".

Signed-off-by: Jeff King <peff@peff.net>
diffcore-pickaxe.c
t/t4030-diff-textconv.sh