diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-07-10 00:00:42 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-07-10 00:00:42 +0300 |
commit | 20d451c4dab4e41efb315a4c7f9d1eb2d83c4fc5 (patch) | |
tree | f71a6fce085cc38e52879cc76abf5bdb2ade935f /revision.c | |
parent | b7ebe8f0479a75e4a8c6be4976330e461592c1f2 (diff) | |
parent | 01faa91cb71cf6f5acdf4e683cce08b5e233cfa8 (diff) |
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 'revision.c')
-rw-r--r-- | revision.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/revision.c b/revision.c index 223e99db5d..6aa7f4f567 100644 --- a/revision.c +++ b/revision.c @@ -1410,7 +1410,8 @@ static int limit_list(struct rev_info *revs) continue; break; } - if (revs->min_age != -1 && (commit->date > revs->min_age)) + if (revs->min_age != -1 && (commit->date > revs->min_age) && + !revs->line_level_traverse) continue; date = commit->date; p = &commit_list_insert(commit, p)->next; |