From fa18794e6f10f8c0dea4c3f8c455d5ab2487fab0 Mon Sep 17 00:00:00 2001 From: Alexandre Mutel Date: Wed, 19 Oct 2016 11:43:31 +0200 Subject: [PATCH] Output a markdown file for the git log --- Source/Tools/SharpGitLog/Program.cs | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Source/Tools/SharpGitLog/Program.cs b/Source/Tools/SharpGitLog/Program.cs index 4c5138bee..830bb3257 100644 --- a/Source/Tools/SharpGitLog/Program.cs +++ b/Source/Tools/SharpGitLog/Program.cs @@ -57,7 +57,7 @@ public void Run(string[] args) gitInfo.CreateNoWindow = true; gitInfo.RedirectStandardOutput = true; gitInfo.UseShellExecute = false; - gitInfo.FileName = @"C:\Program Files (x86)\Git\bin\git.exe"; + gitInfo.FileName = @"C:\Program Files\Git\bin\git.exe"; Process gitProcess = new Process(); gitInfo.Arguments = string.Format(@"log {0}.. --format=""%H %s""", Label); @@ -253,13 +253,12 @@ public void Run(string[] args) keys.Sort(); foreach (var key in keys) { - writer.WriteLine("

{0}

", key); + writer.WriteLine("## {0}", key); var values = commits[key]; values.Sort((left, right) => left.Item2.CompareTo(right.Item2)); - writer.WriteLine(""); + writer.WriteLine(); } writer.Flush();