Addresses #57 - adds warning if no diff.tool

This commit is contained in:
Eric Amodio
2017-04-01 02:48:53 -04:00
parent 3b195b6be2
commit 0c13050387
3 changed files with 19 additions and 1 deletions

View File

@@ -150,6 +150,10 @@ export class Git {
return gitCommand(repoPath, ...params);
}
static config_get(key: string, repoPath?: string) {
return gitCommand(repoPath || '', `config`, `--get`, key);
}
static diff_nameStatus(repoPath: string, sha1?: string, sha2?: string) {
const params = [`diff`, `--name-status`, `-M`];
if (sha1) {