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

[PATCH 0/3 v4] Make git log --follow find copies among unmodified files.

From
Bo Yang <struggleyb.nku@gmail.com>
Date
May 7, 2010, 04:52 UTC
Message-ID
<1273207949-18500-1-git-send-email-struggleyb.nku@gmail.com>

I have tried to make --follow to support finding copies among unmodified files. And the first patch is to fix a bug introduced by '--follow' and 'git log' combination. We use the code:

    else if (--p->one->rename_used > 0)
        p->status = DIFF_STATUS_COPIED;
to detect copies and renames. So, if diffcore_std run more than one time, p->one->rename_used will be reduced to a 'R' from 'C'. And this patch will fix this by allowing diffcore_std can only run once before a diff_flush, which seems rationale for our code.
Bo Yang (3):
  Add a macro DIFF_QUEUE_CLEAR.
  Make diffcore_std only can run once before a diff_flush
  Make git log --follow find copies among unmodified files.
 Documentation/git-log.txt           |    2 +-
 diff.c                              |   21 ++++++++-----
 diffcore-break.c                    |    6 +--
 diffcore-pickaxe.c                  |    3 +-
 diffcore-rename.c                   |    3 +-
 diffcore.h                          |    7 ++++
 t/t4205-log-follow-harder-copies.sh |   56 +++++++++++++++++++++++++++++++++++
 tree-diff.c                         |    2 +-
 8 files changed, 82 insertions(+), 18 deletions(-)
 create mode 100755 t/t4205-log-follow-harder-copies.sh
Next: Bo Yang
Message 1 of 7 in “Make git log --follow find copies among unmodified files.”
  1. 0/3 Make git log --follow find copies among unmodified files.Bo Yang, May 7, 2010
  2. 1/3 Add a macro DIFF_QUEUE_CLEAR.Bo Yang, May 7, 2010
  3. 2/3 Make diffcore_std only can run once before a diff_flushBo Yang, May 7, 2010
  4. 3/3 Make git log --follow find copies among unmodified files.Bo Yang, May 7, 2010
  5. Sven VerdoolaegeAug 2, 2010
  6. Junio C HamanoAug 2, 2010
  7. Bo YangAug 2, 2010

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.