From 8441442d552d6e36f30feb3dcb6456ab532d3719 Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 16 Jun 2010 23:04:40 +0100 Subject: [PATCH] Add a .gitignore to the repo after a succesful clone. --- SparkleShare/SparkleDialog.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/SparkleShare/SparkleDialog.cs b/SparkleShare/SparkleDialog.cs index ede1f9cc..c3d53000 100644 --- a/SparkleShare/SparkleDialog.cs +++ b/SparkleShare/SparkleDialog.cs @@ -173,6 +173,12 @@ namespace SparkleShare { Directory.Move (SparkleHelpers.CombineMore (SparklePaths.SparkleTmpPath, RepoName), SparkleHelpers.CombineMore (SparklePaths.SparklePath, RepoName)); + // Add a .gitignore file to the repo + TextWriter Writer = new StreamWriter (LocalPath + ".gitignore"); + Writer.WriteLine ("*~"); // Ignore gedit swap files + Writer.WriteLine (".*.sw?"); // Ignore vi swap files + Writer.Close (); + // Show a confirmation notification SparkleBubble FinishedBubble; FinishedBubble = new SparkleBubble (String.Format(_("Successfully synced folder ‘{0}’"), RepoName),