From 2d7b78df72204dbe94077aca8b8f61336b5202aa Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 23 Jul 2011 21:34:04 +0100 Subject: [PATCH] ... --- SparkleLib/Git/SparkleRepoGit.cs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs index 9671861a..9747549f 100644 --- a/SparkleLib/Git/SparkleRepoGit.cs +++ b/SparkleLib/Git/SparkleRepoGit.cs @@ -371,15 +371,14 @@ namespace SparkleLib { // Returns a list of the latest change sets - public override List GetChangeSets (int since_days_ago) + public override List GetChangeSets (int count) { - if (since_days_ago < 1) - since_days_ago = 7; + if (count < 1) + count = 30; List change_sets = new List (); - SparkleGit git_log = new SparkleGit (LocalPath, "log --since=\"" + since_days_ago + - " days ago\" --raw -M --date=iso"); + SparkleGit git_log = new SparkleGit (LocalPath, "log -" + count + " --raw -M --date=iso"); Console.OutputEncoding = System.Text.Encoding.Unicode; git_log.Start ();