Re: incorrect range-diff output?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 12, 2019, 15:02 UTC
- Message-ID
- <xmqqo95bxo4p.fsf@gitster-ct.c.googlers.com>
- In-Reply-To
- <20190411220532.GG32487@hank.intra.tgummerer.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
> I'm not sure what the right solution for this is. I think one thing > I'd like range-diff to do is to add the filename, or some context > (e.g. is this part of the commit message etc.) to the @@ line (not > sure what that is called?).
Perhaps the inner diff can be done with the usual funcname/xfuncname logic so that the real function name of the payload is on the @@ lines (they are internally called "hunk header" lines, I think).
And then the outer diff (i.e. the one that compares two inner diff output) can use a special funcname pattern that says "treat the lines that begin with '@@ ' as the function name line", instead of (or in addition to??) the logic that says "lines that begin with 'diff --git' have interesting information" which led to a misleading piece of information in the range-diff output under discussion, perhaps?