Skip to content

line-log: avoid unnecessary full tree diffs

SZEDER Gábor git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2line-log: extract pathspec parsing from line ranges into a helper functionline-log.c+18 -140 replies
2/2line-log: avoid unnecessary full tree diffsline-log.c t/t4211-line-log.sh+118 -710 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] line-log: avoid unnecessary full tree diffs

Line-level log can be very slow with rename detection enabled (and its enabled by default), which is caused by it using the diff machinery very inefficiently. The second patch fixes the issue and make it much faster, especially in large repositories.

This patch series is independent from my other patch series making line-level log incremental [1]. The two can be merged easily, as the changes to 'line-log.c' don't overlap, and the conflict in 't4211-line-log.sh' is trivial (both series add new tests at the end of that test script).

[1] https://public-inbox.org/git/[email protected]/T/

SZEDER Gábor (2):
line-log: extract pathspec parsing from line ranges into a helper
function
line-log: avoid unnecessary full tree diffs

 line-log.c          | 71 ++++++++++++++++++++++++++++-----------
 t/t4211-line-log.sh | 82 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 134 insertions(+), 19 deletions(-)
Signature · 1 line
2.23.0.352.gebb2b55eae