You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2013/01/22 01:17:46 UTC
svn commit: r1436697 - /subversion/trunk/subversion/svn/notify.c
Author: stsp
Date: Tue Jan 22 00:17:46 2013
New Revision: 1436697
URL: http://svn.apache.org/viewvc?rev=1436697&view=rev
Log:
* subversion/svn/notify.c
(notify): Don't calculate 'off' if it is going to be set to zero anyway.
Modified:
subversion/trunk/subversion/svn/notify.c
Modified: subversion/trunk/subversion/svn/notify.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svn/notify.c?rev=1436697&r1=1436696&r2=1436697&view=diff
==============================================================================
--- subversion/trunk/subversion/svn/notify.c (original)
+++ subversion/trunk/subversion/svn/notify.c Tue Jan 22 00:17:46 2013
@@ -346,13 +346,14 @@ notify(void *baton, const svn_wc_notify_
if (n->hunk_matched_line > n->hunk_original_start)
{
- off = n->hunk_matched_line - n->hunk_original_start;
- minus = "";
-
/* If we are patching from the start of an empty file,
it is nicer to show offset 0 */
if (n->hunk_original_start == 0 && n->hunk_matched_line == 1)
off = 0; /* No offset, just adding */
+ else
+ off = n->hunk_matched_line - n->hunk_original_start;
+
+ minus = "";
}
else
{