jonas/tig — pull request #64 by comps (2012-06-06 01:20:48+00:00)
Title: Remove enforced git-{diff,show} move/copy detection

Second revision of pull request #63 ("disable git-diff copy similarity detection").

I've removed "-M" as well, since it's configurable in the same fashion. I've tested this patch with several repositories and with TIG_DIFF_OPTS and everything works more or less as expected.

The problem is that diff.renames=copy enables only basic copy detection, ie. copy is detected only when the source file is changed in the same commit, which is fine with me, but the old behavior (find-copies-harder) is harder to trigger, one needs to use either TIG_DIFF_OPTS or set shell alias for git-diff (+ variants) and git-show.

What surprised me is that not even the basic rename detection is enabled on my git v1.7.10, so the user needs to have diff.renames in the config.

Still, I believe in using configuration options provided by the git suite rather than using hardcoded command line options.

Feel free to amend any minor changes.

Thanks.