Add commit history view in sidebar

This commit is contained in:
Nick O'Leary
2017-10-09 23:37:19 +01:00
parent eae390acf5
commit 19c84eb694
7 changed files with 346 additions and 69 deletions

View File

@@ -355,6 +355,15 @@ function getFileDiff(project,file,type) {
var projectPath = fspath.join(projectsDir,project);
return gitTools.getFileDiff(projectPath,file,type);
}
function getCommits(project,options) {
var projectPath = fspath.join(projectsDir,project);
return gitTools.getCommits(projectPath,options);
}
function getCommit(project,sha) {
var projectPath = fspath.join(projectsDir,project);
return gitTools.getCommit(projectPath,sha);
}
function getFile(project,path) {
}
@@ -512,6 +521,8 @@ module.exports = {
unstageFile: unstageFile,
commit: commit,
getFileDiff: getFileDiff,
getCommits: getCommits,
getCommit: getCommit,
getFlows: getFlows,
saveFlows: saveFlows,