<div dir="ltr">Submitted as r191820.<div><br></div><div>I absolutely agree that tests would be nice, but I have not gotten around to writing them yet (and probably won't for several more weeks) :-(.</div><div><br></div>
<div>Thanks for working on this!</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 2, 2013 at 11:14 AM, Alp Toker <span dir="ltr"><<a href="mailto:alp@nuanti.com" target="_blank">alp@nuanti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">clang-format-diff incorrectly modifies unchanged lines due to an error<br>
in diff parsing.<br>
<br>
The unified diff format has a default line change count of 1, and 0 may<br>
be specified to indicate that no lines have been added. This patch<br>
updates the parser to accurately reflect the diff specification.<br>
<br>
This also has the benefit of stabilising the operation so it will<br>
produce the same output when run multiple times on the same changeset,<br>
which was previously not the case.<br>
<br>
No tests added because this script is not currently tested (though we<br>
should look into that!)<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
<a href="http://www.nuanti.com" target="_blank">http://www.nuanti.com</a><br>
the browser experts<br>
<br>
</font></span><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div>