Switches everything to use full shas

This commit is contained in:
Eric Amodio
2017-03-10 22:26:48 -05:00
parent df838e883a
commit 762fa545c7
20 changed files with 60 additions and 37 deletions

View File

@@ -49,6 +49,10 @@ export class GitUri extends Uri {
}
}
get shortSha() {
return this.sha && this.sha.substring(0, 8);
}
fileUri() {
return Uri.file(this.sha ? this.path : this.fsPath);
}