Adds new command to show quick commit info

This commit is contained in:
Eric Amodio
2017-02-10 04:09:00 -05:00
parent 615f55574b
commit e12ec7093c
8 changed files with 139 additions and 8 deletions

View File

@@ -421,7 +421,7 @@ export default class GitProvider extends Disposable {
return locations;
}
async getLogForRepo(repoPath: string, maxCount?: number): Promise<IGitLog | undefined> {
async getLogForRepo(repoPath: string, sha?: string, maxCount?: number): Promise<IGitLog | undefined> {
Logger.log(`getLogForRepo('${repoPath}', ${maxCount})`);
if (maxCount == null) {
@@ -429,7 +429,7 @@ export default class GitProvider extends Disposable {
}
try {
const data = await Git.logRepo(repoPath, maxCount);
const data = await Git.logRepo(repoPath, sha, maxCount);
return new GitLogParserEnricher().enrich(data, repoPath, true);
}
catch (ex) {