Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-daniels committed Feb 6, 2015
2 parents abfc99d + 96dfab4 commit 9ebf5ca
Showing 1 changed file with 0 additions and 65 deletions.
65 changes: 0 additions & 65 deletions Phamhilator.Core/GitDataFetcher.cs
Expand Up @@ -13,71 +13,6 @@ public static class GitDataFetcher
{
public static void GetData(out string commitHash, out string commitMessage, out string commitAuthor)
{
//string output;

//using (var p = new Process())
//{
// p.StartInfo = new ProcessStartInfo
// {
// FileName = "git",
// Arguments = "log --pretty=format:\"[`%h` *`(%s by %cn)`*]\" -n 1",
// WorkingDirectory = Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).FullName,
// UseShellExecute = false,
// RedirectStandardOutput = true,
// CreateNoWindow = true
// };

// p.Start();

// output = p.StandardOutput.ReadToEnd();

// p.WaitForExit();
//}



//var psi = new ProcessStartInfo
//{
// FileName = "cmd.exe",
// Arguments = "git log --pretty=format:\"[`%h` (%s by %cn)]\" -n 1",
// WorkingDirectory = @"C:\Users\Samuel\Documents\GitHub\Phamhilator"/*Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).FullName*///,
// //UseShellExecute = false,
// //RedirectStandardOutput = true,
// //RedirectStandardError = true//,
// //CreateNoWindow = true
//};

//var p = Process.Start(psi);

//var t = p.StandardError.ReadToEnd();
//var g = p.StandardOutput.ReadToEnd();

//var output = Process.Start(psi).StandardOutput.ReadToEnd();

//dataFormatted = output;
//commitHash = output.Split('`')[1];




//Process p = new Process();
//ProcessStartInfo psi = new ProcessStartInfo();
//psi.FileName = "cmd";
//psi.Arguments = "git log --pretty=format:\"[`%h` (%s by %cn)]\" -n 1";
//psi.WorkingDirectory = @"C:\Users\Samuel\Documents\GitHub\Phamhilator";//Directory.GetParent(AppDomain.CurrentDomain.BaseDirectory).FullName;
//psi.UseShellExecute = false;
//psi.RedirectStandardOutput = true;
////psi.CreateNoWindow = true;
//p.StartInfo = psi;
//p.Start();
//string output = p.StandardOutput.ReadToEnd();
//p.WaitForExit();
//p.Dispose();

//dataFormatted = output;
//commitHash = output.Split('`')[1];


string output;

using (var p = new Process())
Expand Down

0 comments on commit 9ebf5ca

Please sign in to comment.