git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 0/3] Falling back "diff -C -C" to "diff -C" more gracefully

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 6, 2011, 21:50 UTC
Message-ID
<1294350606-19530-1-git-send-email-gitster@pobox.com>
In-Reply-To
<7vhbdlahnp.fsf@alter.siamese.dyndns.org>

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(-)
-- 
1.7.4.rc1.214.g2a4f9
Next: Junio C Hamano
Message 1 of 5 in “Falling back "diff -C -C" to "diff -C" more gracefully”
  1. 0/3 Falling back "diff -C -C" to "diff -C" more gracefullyJunio C Hamano, Jan 6, 2011
  2. 1/3 diffcore-rename: refactor "too many candidates" logicJunio C Hamano, Jan 6, 2011
  3. 2/3 diffcore-rename: record filepair for rename srcJunio C Hamano, Jan 6, 2011
  4. 3/3 diffcore-rename: fall back to -C when -C -C busts the rename limitJunio C Hamano, Jan 6, 2011
  5. Jeff KingJan 6, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.