diff options
author | Junio C Hamano <gitster@pobox.com> | 2012-11-15 10:23:57 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-11-15 10:23:58 -0800 |
commit | 84fcfaf92b857b22e64f4d33e06cdd5701e5e331 (patch) | |
tree | c97faf2632c74ea239817c08bff07363ebacba77 /t | |
parent | b398fcc2623872225e3534c8344ca5734cbfe164 (diff) | |
parent | b1c2f57db326c43ec286855b396fb16b4890cf2d (diff) | |
download | git-84fcfaf92b857b22e64f4d33e06cdd5701e5e331.tar.gz |
Merge branch 'jk/maint-diff-grep-textconv'
Fixes inconsistent use of textconv with "git log -G".
* jk/maint-diff-grep-textconv:
diff_grep: use textconv buffers for add/deleted files
Diffstat (limited to 't')
-rwxr-xr-x | t/t4030-diff-textconv.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/t/t4030-diff-textconv.sh b/t/t4030-diff-textconv.sh index eebb1eed8b..461d27ac20 100755 --- a/t/t4030-diff-textconv.sh +++ b/t/t4030-diff-textconv.sh @@ -84,6 +84,18 @@ test_expect_success 'status -v produces text' ' git reset --soft HEAD@{1} ' +test_expect_success 'grep-diff (-G) operates on textconv data (add)' ' + echo one >expect && + git log --root --format=%s -G0 >actual && + test_cmp expect actual +' + +test_expect_success 'grep-diff (-G) operates on textconv data (modification)' ' + echo two >expect && + git log --root --format=%s -G1 >actual && + test_cmp expect actual +' + cat >expect.stat <<'EOF' file | Bin 2 -> 4 bytes 1 file changed, 0 insertions(+), 0 deletions(-) |