public void ViewFile(string filename) { string cmd = String.Format("-d {0}.untracked {0}", filename); RunExternal runner = new RunExternal("gvim.exe", "."); runner.RunWithoutWaiting(cmd); }
static public string GetSignature() { RunExternal runner = new RunExternal(ProgramPathFinder.GetGitBin(), "."); List <string> outputs = runner.Run("config --list"); string name_prefix = "user.name="; string name = "unknown"; string email_prefix = "user.email="; string email = "*****@*****.**"; foreach (string output in outputs) { if (output.StartsWith(name_prefix)) { name = output.Substring(name_prefix.Length); } if (output.StartsWith(email_prefix)) { email = output.Substring(email_prefix.Length); } } return(string.Format("{0} <{1}>", name, email)); }
private RunExternal CreateGitRunner() { RunExternal runner = new RunExternal(ProgramPathFinder.GetGitBin(), path_); return(runner); }
public void OnOpenSelectedFileCommand(object parameter) { foreach (var item in SelectedModifiedFilePathList) { string directory_name = System.IO.Path.GetDirectoryName(Directory + "\\" + item); RunExternal runner = new RunExternal("explorer.exe", directory_name); runner.RunWithoutWaiting(Directory + "\\" + item); } }
private RunExternal CreateGitRunner() { RunExternal runner = new RunExternal(ProgramPathFinder.GetGitBin(), path_); return runner; }