Last active
September 17, 2015 18:51
-
-
Save SjB/e942bd046f3df1245730 to your computer and use it in GitHub Desktop.
cake git function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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