|
From: Daniel J S. <dan...@ie...> - 2017-10-22 05:47:24
|
On 10/21/2017 03:53 PM, Daniel J Sebald wrote:
> On 10/21/2017 03:31 PM, "Bastian Märkisch" wrote:
>>> Gesendet: Samstag, 21. Oktober 2017 um 22:08 Uhr
>>> Betreff: Re: Aw: Re: News spin of repository conversion
>>>
>>> On 10/21/2017 02:53 PM, "Bastian Märkisch" wrote:
[snip]
> I can easily address that in the utility by starting not from the first
> '+' change, but from the last '+' change of the first block of '+'
> changes. However, I'm not sure that can be done with Eric's python
> algorithm because one needs to differentiate between the addition '+',
> subtraction '-'. The python approach only differentiates between
> modified line ('+' or '-') and non-modified line (' '). The '+' and '-'
> come from the diff utility, which is surprisingly sophisticated.
I've enhanced my utility with the following subtle change: search for
first item (i.e., line has a star * or colon :) within the addition diff
hunk. This corrected 4 entries, which I've listed on SourceForge here:
https://sourceforge.net/p/gnuplot/patches/763/#5709
Here's an example of those 4 in which the first added line is a space
and the author info appears in the second changed line, not the first:
@@ -1,50 +1,58 @@
+
+2000-09-20 Jjjjjj Zzzzzz <xxxxxx@xxxxxx>
+
+ * relative arrows:
So, the new algorithm will search until finding the * of " * relative
arrows:" (line 4). Then searching backward from that point (line 4)
will find the proper author (line 2).
Dan
|