mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-03 06:51:53 +01:00
Git - provide correct editor title for resources under the "All Changes" node (#194273)
This commit is contained in:
@@ -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'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user