From: Junio C Hamano <hidden> Date: 2016-06-15 22:49:19
Ævar Arnfjörð Bjarmason [off-list ref] writes:
On Fri, Aug 13, 2010 at 19:46, Junio C Hamano [off-list ref] wrote:
quoted
This hopefully fixes the breakage.
Hopefully. It'd also be nice if we had a regression test for this, but
I don't know how hard that would be to arrange. If it's hard to
reproduce we might get away with a filter-branch + subdir filter from
the idea repository.
As I wrote, the test added by 0cdca13 breaks with just a reversion of
1da6175 but with this patch it passes. I didn't run any other test,
though ;-).
@@ -441,5 +441,14 @@ test_expect_success 'log.decorate configuration' ''+test_expect_success'Regression test for v1.7.2-rc0~103^2~2''
This is uninformative and ugly at the same time.
- Can't we describe the nature of the situation where the old bug
triggers concisely? Perhaps 'show added path under "--follow -M"?'
- All others begin with lowercase.
Add a regression test for the git log -M --follow $diff_option bug
introduced in v1.7.2-rc0~103^2~2, $diff_option being diff related
options like -p, --stat, --name-only etc.
Signed-off-by: Ævar Arnfjörð Bjarmason <redacted>
---
Version two of this test case, simpler, and takes into account
commentary from Junio.
t/t4202-log.sh | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
@@ -441,5 +441,18 @@ test_expect_success 'log.decorate configuration' ''+test_expect_success'show added path under "--follow -M"''+# This tests for a regression introduced in v1.7.2-rc0~103^2~2+test_create_reporegression&&+(+cdregression&&+test_commitneeds-another-commit&&+test_commitFoo.bar&&+gitlog-M--follow-pFoo.bar.t&&+gitlog-M--follow--statFoo.bar.t&&+gitlog-M--follow--name-onlyFoo.bar.t+)+'+ test_done
'
+test_expect_success 'Regression test for v1.7.2-rc0~103^2~2' '
This is uninformative and ugly at the same time.
- Can't we describe the nature of the situation where the old bug
triggers concisely? Perhaps 'show added path under "--follow -M"?'
I didn't grok why this was happening, but yeah, that description is
better.