summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-12-22 20:31:43 +0100
committerAndreas Gruenbacher <agruen@suse.de>2009-12-22 20:31:43 +0100
commit84f303c1ef88b863262262b1e3378cfd6a8a9864 (patch)
treed34bb8a037141f861d438df186deabc6df46c05b
parent71a3f0d5cf67d90ab500bf15fb92544369dd1c75 (diff)
downloadpatch-84f303c1ef88b863262262b1e3378cfd6a8a9864.tar.gz
* src/pch.c (intuit_diff_type): Add some clarifying comments.
-rw-r--r--ChangeLog2
-rw-r--r--src/pch.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5a9c20b..fd22f6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
* src/version.c (copyright_string): Add year 2009.
+ * src/pch.c (intuit_diff_type): Add some clarifying comments.
+
2009-11-14 Andreas Gruenbacher <agruen@suse.de>
* update-version.sh: Platform compatibility fixes.
diff --git a/src/pch.c b/src/pch.c
index 0a136ae..a641e12 100644
--- a/src/pch.c
+++ b/src/pch.c
@@ -638,6 +638,7 @@ intuit_diff_type (bool need_header)
if (! posixly_correct)
{
+ /* The best of all existing files. */
i = best_name (p_name, stat_errno);
if (i == NONE && patch_get)
@@ -706,6 +707,7 @@ intuit_diff_type (bool need_header)
if (p_name[i])
distance_from_minimum[i] = newdirs[i] - newdirs_min;
+ /* The best of the filenames which create the fewest directories. */
i = best_name (p_name, distance_from_minimum);
}
}