/* * GitAddFilesToCommit() * * This executes a 'git add <file1> <file2> .. <fileN>' command. * */ internal CmdReturn GitAddFilesToCommit(List<String> filesList) { String filesStr = ""; filesList.ForEach(delegate(String file) { filesStr += " "; filesStr += file; }); return ExecuteProcess(workingDirectory, "git add" + filesStr, false); }
/* * GitRemoveFiles() * * This executes a 'git rm <file1> <file2> .. <fileN>' command. * */ internal CmdReturn GitRemoveFiles(List<String> filesList) { String filesStr = ""; filesList.ForEach(delegate(String file) { filesStr += " "; filesStr += file; }); return ExecuteProcess(workingDirectory, "git rm" + filesStr, false); }
private static void PrepareVertex(List<VertexBase> list) { list.ForEach(r => { r.X = r.X * Precision / Precision; r.Y = r.Y * Precision / Precision; }); }