This commit is contained in:
João Moreno
2020-11-06 14:45:17 +01:00
parent 0cc93f5c48
commit ce4fb6e323
6 changed files with 53 additions and 28 deletions

View File

@@ -1087,8 +1087,8 @@ export class Repository implements Disposable {
await this.run(Operation.DeleteTag, () => this.repository.deleteTag(name));
}
async checkout(treeish: string): Promise<void> {
await this.run(Operation.Checkout, () => this.repository.checkout(treeish, []));
async checkout(treeish: string, opts?: { detached?: boolean }): Promise<void> {
await this.run(Operation.Checkout, () => this.repository.checkout(treeish, [], opts));
}
async checkoutTracking(treeish: string): Promise<void> {