Skip to content

pr-1606/thesamesam/config-copies-harder-v1

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>

Submitted-As: https://lore.kernel.org/git/pull.1606.git.1699010701704.gitgitgadget@gmail.com
Assets 2