mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Merge pull request #60104 from mathiasvr/fix-60002
Fix #60002 Undo last commit: keep staged files
This commit is contained in:
@@ -1114,14 +1114,7 @@ export class Repository {
|
||||
}
|
||||
|
||||
async reset(treeish: string, hard: boolean = false): Promise<void> {
|
||||
const args = ['reset'];
|
||||
|
||||
if (hard) {
|
||||
args.push('--hard');
|
||||
}
|
||||
|
||||
args.push(treeish);
|
||||
|
||||
const args = ['reset', hard ? '--hard' : '--soft', treeish];
|
||||
await this.run(args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user