[repo] Add todo and fix syncing animation for fetching

This commit is contained in:
Hylke Bons 2010-08-05 11:40:12 +01:00
parent 7f0e77d288
commit 69bb7d62a0

View file

@ -218,6 +218,8 @@ namespace SparkleLib {
private void Add ()
{
// TODO: Check whether adding files is neccassary
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Staging changes...");
Process.StartInfo.Arguments = "add --all";
@ -271,17 +273,20 @@ namespace SparkleLib {
Process.StartInfo.Arguments = "fetch";
Process.WaitForExit ();
Process.Start ();
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes fetched.");
Process.Exited += delegate {
args = new SparkleEventArgs ("FetchingFinished");
SparkleHelpers.DebugInfo ("Git", "[" + Name + "] Changes fetched.");
if (FetchingFinished != null)
FetchingFinished (this, args);
args = new SparkleEventArgs ("FetchingFinished");
Rebase ();
if (FetchingFinished != null)
FetchingFinished (this, args);
Rebase ();
};
} finally {