mirror of
https://github.com/ckaczor/vscode-gitlens.git
synced 2026-01-14 10:03:15 -05:00
Adds catch to blameLine to avoid strange issues
Removes Git: from all the commands Removes unused enricher
This commit is contained in:
@@ -5,9 +5,10 @@ import * as tmp from 'tmp';
|
||||
import {spawnPromise} from 'spawn-rx';
|
||||
|
||||
export * from './gitEnrichment';
|
||||
//export * from './enrichers/blameRegExpEnricher';
|
||||
export * from './enrichers/blameParserEnricher';
|
||||
|
||||
const UncommitedRegex = /^[0]+$/;
|
||||
|
||||
function gitCommand(cwd: string, ...args) {
|
||||
return spawnPromise('git', args, { cwd: cwd })
|
||||
.then(s => {
|
||||
@@ -100,4 +101,8 @@ export default class Git {
|
||||
|
||||
return gitCommand(root, 'show', `${sha}:./${file}`);
|
||||
}
|
||||
|
||||
static isUncommitted(sha: string) {
|
||||
return UncommitedRegex.test(sha);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user