Add commit-diff view

This commit is contained in:
Nick O'Leary
2017-10-25 15:26:24 +01:00
parent b9a3563e5b
commit 57533fd831
14 changed files with 617 additions and 273 deletions

View File

@@ -215,6 +215,10 @@ module.exports = {
return runCommand(gitCommand,args,cwd);
},
getFiles: getFiles,
getFile: function(cwd, filePath, treeish) {
var args = ["show",treeish+":"+filePath];
return runCommand(gitCommand,args,cwd);
},
stageFile: function(cwd,file) {
var args = ["add"];
if (Array.isArray(file)) {