[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnu-arch-users] Re: Inconsistency of Added-files and Removed-files

From: Stefan Monnier
Subject: [Gnu-arch-users] Re: Inconsistency of Added-files and Removed-files
Date: 18 Aug 2004 13:10:23 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> fai revisions --modified FILE:LINE can tell you which revisions added the
> current contents of LINE to FILE.  For lines with unique content, this is
> the same as "the last revision that modified this line".

I didn't think of relying on the "mostly-unique-ness" of lines, but it's
a good idea.

> Exact matching seems possible, but requires more sophisticated diff parsing.
> One must recalculate the line numbers every time lines are added or removed
> above the lines in question.

That's what I was thinking of.  I think both approaches have their
advantages (e.g. yours has the advantage of easily handling the case where
a diff just moves a function from one place to another in the same file).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]