This commit is contained in:
Hylke Bons 2011-07-23 21:34:04 +01:00
parent d92879d830
commit 2d7b78df72

View file

@ -371,15 +371,14 @@ namespace SparkleLib {
// Returns a list of the latest change sets // Returns a list of the latest change sets
public override List <SparkleChangeSet> GetChangeSets (int since_days_ago) public override List <SparkleChangeSet> GetChangeSets (int count)
{ {
if (since_days_ago < 1) if (count < 1)
since_days_ago = 7; count = 30;
List <SparkleChangeSet> change_sets = new List <SparkleChangeSet> (); List <SparkleChangeSet> change_sets = new List <SparkleChangeSet> ();
SparkleGit git_log = new SparkleGit (LocalPath, "log --since=\"" + since_days_ago + SparkleGit git_log = new SparkleGit (LocalPath, "log -" + count + " --raw -M --date=iso");
" days ago\" --raw -M --date=iso");
Console.OutputEncoding = System.Text.Encoding.Unicode; Console.OutputEncoding = System.Text.Encoding.Unicode;
git_log.Start (); git_log.Start ();