Re: combined diff, but not condensed, howto?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 18, 2008, 06:14 UTC
- Message-ID
- <7vy71qyo9d.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <48D1EDB7.5070107@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 11 quoted lines
> Junio C Hamano schrieb: >> Johannes Sixt <j.sixt@viscovery.net> writes: >> >>> After a merge conflict, 'git diff' shows a combined diff, which presents >>> only the parts that conflicted or where there are near-by changes from >>> different parents (potential conflicts). Is there a command line switch so >>> that *all* changes are shown, even non-conflicting ones? >> >> Like "git diff HEAD"? > > No. Something that produces
...
Ah, I see what you mean.
It all happens inside combine-diff.c::make_hunks(). If you pass dense==0, you should be able to get all the uninteresting hunks, I think.
Perhaps
$ git diff --base -c
???