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

Re: git-diff/git-diff-files: Turn off copy-detection?

From
Marius Storm-Olsen <marius@storm-olsen.com>
Date
Sep 29, 2009, 14:24 UTC
Message-ID
<4AC218BB.4080807@gmail.com>
In-Reply-To
<4AC20E37.3090204@viscovery.net>
Johannes Sixt said the following on 29.09.2009 15:40:
Show 11 quoted lines
> Marius Storm-Olsen schrieb:
>> Doing a 'git diff origin/4.5..origin/4.6 -- src/corelib' gives me this
>> excerpt:
>>
>> diff --git origin/4.5/src/corelib/tools/qtimeline.h
>> origin/4.6/src/corelib/animation/qabstractanimation.h
>> similarity index 58%
>> ...
> 
> You must have the config variable diff.renames set. But I would not expect
> that this setting applies to 'git diff-files', only to 'git diff'.

$ git config diff.renames copies

That's it, thanks! Strange that nothing in the git-diff documentation pointed me in this direction? Obviously I didn't connect the dots between 'copy' and 'renames' either..

> You can also try 'git diff -C99 -M99' if you don't want to unset the
> config variable.
Thanks, I'll add that to my review script. Much appreciated!

-- .marius

Previous: Johannes SixtNext: Miklos Vajna
Message 3 of 5 in “git-diff/git-diff-files: Turn off copy-detection?”
  1. Marius Storm-OlsenSep 29, 2009
  2. Johannes SixtSep 29, 2009
  3. Marius Storm-OlsenSep 29, 2009
  4. Miklos VajnaSep 29, 2009
  5. Miklos VajnaSep 29, 2009

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.