Skip to content

Instantly share code, notes, and snippets.

@dgrunwald
Created January 17, 2014 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgrunwald/8474772 to your computer and use it in GitHub Desktop.
Save dgrunwald/8474772 to your computer and use it in GitHub Desktop.
Invalid code that messes up locations in NRefactory parser
using System;
using System.Linq;
class Test
{
public static Task<int> RunGitAsync(string workingDir, params string[] arguments)
{
string git = FindGit();
if (git == null)
return Task.FromResult(9009);
ProcessRunner p = new ProcessRunner();
p.WorkingDirectory = workingDir;
return p.RunInOutputPadAsync(GitMessageView.Category, git", arguments);
}
/// <summary>
/// Finds 'git.exe'
/// </summary>
public static string FindGit()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment