[repo] Not everything is file dumping

This commit is contained in:
Hylke Bons 2011-03-04 16:50:41 +00:00
parent 6153d40f89
commit d523f13eac

View file

@ -1040,7 +1040,13 @@ namespace SparkleLib {
int.Parse (match.Groups [9].Value)); int.Parse (match.Groups [9].Value));
string [] entry_lines = log_entry.Split ("\n".ToCharArray ()); string [] entry_lines = log_entry.Split ("\n".ToCharArray ());
int change_count = 0;
if (entry_lines.Length > 60) {
commit.IsFileDump = true;
} else {
foreach (string entry_line in entry_lines) { foreach (string entry_line in entry_lines) {
if (entry_line.StartsWith (":")) { if (entry_line.StartsWith (":")) {
@ -1062,17 +1068,6 @@ namespace SparkleLib {
} }
change_count++;
if (change_count > 50) {
commit.Added.Clear ();
commit.Edited.Clear ();
commit.Deleted.Clear ();
commit.IsFileDump = true;
break;
} }
} }