From 38e8db9e7040fc4eeeb1c0154ef05e9ed6bd05f0 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Mon, 16 Jan 2012 20:23:12 +0000 Subject: [PATCH] git put SparkleGit class in its own file --- SparkleLib/Git/SparkleFetcherGit.cs | 21 --------------- SparkleLib/Git/SparkleGit.cs | 42 +++++++++++++++++++++++++++++ SparkleLib/Makefile.am | 1 + 3 files changed, 43 insertions(+), 21 deletions(-) create mode 100644 SparkleLib/Git/SparkleGit.cs diff --git a/SparkleLib/Git/SparkleFetcherGit.cs b/SparkleLib/Git/SparkleFetcherGit.cs index d52fadee..b9f38277 100755 --- a/SparkleLib/Git/SparkleFetcherGit.cs +++ b/SparkleLib/Git/SparkleFetcherGit.cs @@ -380,25 +380,4 @@ namespace SparkleLib { writer.Close (); } } - - - public class SparkleGit : Process { - - public SparkleGit (string path, string args) : base () - { - EnableRaisingEvents = true; - StartInfo.FileName = SparkleBackend.DefaultBackend.Path; - StartInfo.Arguments = args; - StartInfo.RedirectStandardOutput = true; - StartInfo.UseShellExecute = false; - StartInfo.WorkingDirectory = path; - } - - - new public void Start () - { - SparkleHelpers.DebugInfo ("Cmd", StartInfo.FileName + " " + StartInfo.Arguments); - base.Start (); - } - } } diff --git a/SparkleLib/Git/SparkleGit.cs b/SparkleLib/Git/SparkleGit.cs new file mode 100644 index 00000000..308d73f2 --- /dev/null +++ b/SparkleLib/Git/SparkleGit.cs @@ -0,0 +1,42 @@ +// SparkleShare, a collaboration and sharing tool. +// Copyright (C) 2010 Hylke Bons +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + + +using System; +using System.Diagnostics; + +namespace SparkleLib { + + public class SparkleGit : Process { + + public SparkleGit (string path, string args) : base () + { + EnableRaisingEvents = true; + StartInfo.FileName = SparkleBackend.DefaultBackend.Path; + StartInfo.Arguments = args; + StartInfo.RedirectStandardOutput = true; + StartInfo.UseShellExecute = false; + StartInfo.WorkingDirectory = path; + } + + + new public void Start () + { + SparkleHelpers.DebugInfo ("Cmd", StartInfo.FileName + " " + StartInfo.Arguments); + base.Start (); + } + } +} diff --git a/SparkleLib/Makefile.am b/SparkleLib/Makefile.am index b696aa1b..3dd3ac2f 100755 --- a/SparkleLib/Makefile.am +++ b/SparkleLib/Makefile.am @@ -4,6 +4,7 @@ TARGET = library SOURCES = \ Defines.cs \ Git/SparkleFetcherGit.cs \ + Git/SparkleGit.cs \ Git/SparkleRepoGit.cs \ SparkleBackend.cs \ SparkleChangeSet.cs \