Re: [PATCH 8/9 v13] difftool: teach difftool to handle directory diffs
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 18, 2012, 16:25 UTC
- Message-ID
- <7vsjg1knwr.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CAFouetjbHewYzQXZr33xGKgwk0k7D8R0XfoP7k2qAV6Nq_d+Ow@mail.gmail.com>
Tim Henigan <tim.henigan@gmail.com> writes:
Show 6 quoted lines
> So now we must decide how to handle deal with this use case. It seems > there are two options: > > 1) Append '--no-renames' to the end of the 'git diff --raw' argument > list. This will override any '-C' or '-M' settings. This is a simple > solution, but it loses some information about copies and renames.
Or not use Porcelain "git diff", but use the plumbing "git diff-index" or "git diff-files" so that you won't get bitten by such end user settings.
In either case, this "feature", by feeding two entire trees to an external program, makes it the responsibility of that external program to match up files in these two trees, so we shouldn't be doing rename detection ourselves at all.