diff --git a/SparkleLib/Git/SparkleRepoGit.cs b/SparkleLib/Git/SparkleRepoGit.cs
index c2612d71..5ab92c41 100644
--- a/SparkleLib/Git/SparkleRepoGit.cs
+++ b/SparkleLib/Git/SparkleRepoGit.cs
@@ -538,6 +538,30 @@ namespace SparkleLib {
}
+ public override void AddNote (string revision, string note)
+ {
+ string n = Environment.NewLine;
+ note = "" + n +
+ " " + n +
+ " " + SparkleConfig.DefaultConfig.UserName + "" + n +
+ " " + SparkleConfig.DefaultConfig.UserEmail + "" + n +
+ " " + n +
+ " " + (DateTime.UtcNow - new DateTime (1970, 1, 1)).TotalSeconds + "" + n +
+ " " + note + "" + n +
+ "";
+
+ SparkleGit git = new SparkleGit (LocalPath, "note append -m " + note);
+ git.Start ();
+ git.WaitForExit ();
+
+ while (Status != SyncStatus.Idle) {
+ Thread.Sleep (5 * 20);
+ }
+
+ SyncUp ();
+ }
+
+
public override bool UsesNotificationCenter
{
get {
diff --git a/SparkleLib/SparkleRepoBase.cs b/SparkleLib/SparkleRepoBase.cs
index abceb727..a32a6c82 100644
--- a/SparkleLib/SparkleRepoBase.cs
+++ b/SparkleLib/SparkleRepoBase.cs
@@ -443,6 +443,12 @@ namespace SparkleLib {
}
+ public virtual void AddNote (string revision, string note)
+ {
+
+ }
+
+
// Recursively gets a folder's size in bytes
private double CalculateFolderSize (DirectoryInfo parent)
{
@@ -456,7 +462,7 @@ namespace SparkleLib {
if (parent.Name.Equals ("rebase-apply"))
return 0;
- foreach (FileInfo file in parent.GetFiles()) {
+ foreach (FileInfo file in parent.GetFiles ()) {
if (!file.Exists)
return 0;
diff --git a/data/html/event-entry.html b/data/html/event-entry.html
index b1f454bd..6aec7a04 100644
--- a/data/html/event-entry.html
+++ b/data/html/event-entry.html
@@ -16,23 +16,20 @@
-webkit-box-sizing:border-box;
-moz-box-sizing: border-box; margin-top: 3px;width:100%;padding:12px;'>
-
+
+width: 75%;float:right;height: 40px">
+ value="Add comment" id="">
diff --git a/data/html/event-log.html b/data/html/event-log.html
index c48ea6b9..a74f757e 100644
--- a/data/html/event-log.html
+++ b/data/html/event-log.html
@@ -4,9 +4,24 @@
SparkleShare Event Log