[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Possible bug in diff context mode
From: |
Stepan Kasal |
Subject: |
Re: Possible bug in diff context mode |
Date: |
Wed, 18 Aug 2004 16:04:53 +0200 |
User-agent: |
Mutt/1.4.1i |
Hello,
On Wed, Aug 18, 2004 at 09:37:11AM -0400, Justin Miller wrote:
> I understand that, but the second file contains 3 lines, where the first only
> has one. I can understand one exclamation mark, but I would think lines two
> and
> three of file 2 should have plus signs. That's really an addition, not a
> change,
> correct?
no, it's "1c1,3" ie. line 1 is replaced by lines 1-3.
You have to compute the changes (without the context) and then each id
classified
as "change", "add" or "delete".
If the two files were:
---file a---
one
comm
---eof---
---file b---
only
comm
add
add2
---eof---
Then there would be two changes: 1c1 and 2a3,4
Go and experiment a bit, you'll get into it.
HTH,
Stepan Kasal