Git - provide correct editor title for resources under the "All Changes" node (#194273)

This commit is contained in:
Ladislau Szomoru
2023-09-27 12:05:58 +02:00
committed by GitHub
parent 8ef15195d4
commit 3a0b6baa61
4 changed files with 24 additions and 3 deletions

View File

@@ -2555,6 +2555,18 @@ export class Repository {
return { ahead: Number(ahead) || 0, behind: Number(behind) || 0 };
}
async revParse(ref: string): Promise<string | undefined> {
try {
const result = await this.exec(['rev-parse', ref]);
if (result.stderr) {
return undefined;
}
return result.stdout.trim();
} catch (err) {
return undefined;
}
}
async updateSubmodules(paths: string[]): Promise<void> {
const args = ['submodule', 'update'];