Skip to content

Instantly share code, notes, and snippets.

@SjB
Last active September 17, 2015 18:51
Show Gist options
  • Save SjB/e942bd046f3df1245730 to your computer and use it in GitHub Desktop.
Save SjB/e942bd046f3df1245730 to your computer and use it in GitHub Desktop.
cake git function
Func<IEnumerable<string>, int> Git = delegate(IEnumerable<string> arguments) {
var processArgs = new ProcessArgumentBuilder();
foreach (var arg in arguments)
processArgs.Append(arg);
return StartProcess("git", new ProcessSettings { Arguments = processArgs});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment