Skip to content

Falling back "diff -C -C" to "diff -C" more gracefully

Junio C Hamano git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3diffcore-rename: refactor "too many candidates" logicdiffcore-rename.c+25 -140 replies
2/3diffcore-rename: record filepair for rename srcdiffcore-rename.c+12 -110 replies
3/3diffcore-rename: fall back to -C when -C -C busts the rename limitdiffcore-rename.c+35 -20 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/3] Falling back "diff -C -C" to "diff -C" more gracefully

In a project with many paths, "diff -C -C" may have too many rename source candidates (as it tries to use all existing paths) but the rename source candidates "diff -C" would use may still fit under the rename detection limit. Currently, we punt and disable the inexact rename detection altogether even in such a case.

This weatherballoon series illustrates how diffcore-rename can be tweaked to allow "-C -C" to fall back to "-C". Somebody should write a test, but not today ;-).

Junio C Hamano (3):
diffcore-rename: refactor "too many candidates" logic
diffcore-rename: record filepair for rename src
diffcore-rename: fall back to -C when -C -C busts the rename limit

 diffcore-rename.c |   97 ++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 71 insertions(+), 26 deletions(-)
Signature · 1 line
1.7.4.rc1.214.g2a4f9