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

Re: [PATCH] diff: implement config.diff.renames=copies-harder

From
Sam James <sam@gentoo.org>
Date
Mar 11, 2024, 21:42 UTC
Message-ID
<87frwwmomn.fsf@gentoo.org>
In-Reply-To
<pull.1606.git.1699010701704.gitgitgadget@gmail.com>
"Sam James via GitGitGadget" <gitgitgadget@gmail.com> writes:
Show 32 quoted lines
> From: Sam James <sam@gentoo.org>
>
> This patch adds a config value for 'diff.renames' called 'copies-harder'
> which make it so '-C -C' is in effect always passed for 'git log -p',
> 'git diff', etc.
>
> This allows specifying that 'git log -p', 'git diff', etc should always act
> as if '-C --find-copies-harder' was passed.
>
> I've found this especially useful for certain types of repository (like
> Gentoo's ebuild repositories) because files are often copies of a previous
> version.
>
> Signed-off-by: Sam James <sam@gentoo.org>
> ---
>     diff: implement config.diff.renames=copies-harder
>     
>     This patch adds a config value for 'diff.renames' called 'copies-harder'
>     which make it so '-C -C' is in effect always passed for 'git log -p',
>     'git diff', etc.
>     
>     This allows specifying that 'git log -p', 'git diff', etc should always
>     act as if '-C --find-copies-harder' was passed.
>     
>     I've found this especially useful for certain types of repository (like
>     Gentoo's ebuild repositories) because files are often copies of a
>     previous version.
>
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1606%2Fthesamesam%2Fconfig-copies-harder-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1606/thesamesam/config-copies-harder-v1
> Pull-Request: https://github.com/gitgitgadget/git/pull/1606
>

v2: https://lore.kernel.org/git/20231226202102.3392518-1-sam@gentoo.org/ v3: https://lore.kernel.org/git/20240311213928.1872437-1-sam@gentoo.org/

Previous: Elijah Newren
Message 9 of 9 in “diff: implement config.diff.renames=copies-harder”
  1. diff: implement config.diff.renames=copies-harderSam James via GitGitGadget, Nov 3, 2023
  2. Elijah NewrenNov 7, 2023
  3. Junio C HamanoNov 7, 2023
  4. Elijah NewrenNov 7, 2023
  5. Junio C HamanoNov 8, 2023
  6. Elijah NewrenNov 8, 2023
  7. Junio C HamanoNov 8, 2023
  8. Elijah NewrenNov 8, 2023
  9. Sam JamesMar 11, 2024

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.