summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2020-07-09 14:00:42 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2020-07-09 14:00:42 -0700
commit20d451c4dab4e41efb315a4c7f9d1eb2d83c4fc5 (patch)
treef71a6fce085cc38e52879cc76abf5bdb2ade935f /t
parentMerge branch 'ra/send-email-in-reply-to-from-command-line-wins' into master (diff)
parentrevision: disable min_age optimization with line-log (diff)
downloadtgif-20d451c4dab4e41efb315a4c7f9d1eb2d83c4fc5.tar.xz
Merge branch 'rs/line-log-until' into master
"git log -Lx,y:path --before=date" lost track of where the range should be because it didn't take the changes made by the youngest commits that are omitted from the output into account. * rs/line-log-until: revision: disable min_age optimization with line-log
Diffstat (limited to 't')
-rwxr-xr-xt/t4211-line-log.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4211-line-log.sh b/t/t4211-line-log.sh
index 1428eae262..e186c83250 100755
--- a/t/t4211-line-log.sh
+++ b/t/t4211-line-log.sh
@@ -240,10 +240,12 @@ test_expect_success 'setup for checking line-log and parent oids' '
EOF
git add file.c &&
test_tick &&
+ first_tick=$test_tick &&
git commit -m "Add func1() and func2() in file.c" &&
echo 1 >other-file &&
git add other-file &&
+ test_tick &&
git commit -m "Add other-file" &&
sed -e "s/F1/F1 + 1/" file.c >tmp &&
@@ -283,4 +285,10 @@ test_expect_success 'parent oids with parent rewriting' '
test_cmp expect actual
'
+test_expect_success 'line-log with --before' '
+ echo $root_oid >expect &&
+ git log --format=%h --no-patch -L:func2:file.c --before=$first_tick >actual &&
+ test_cmp expect actual
+'
+
test_done