Skip to content

Commit a271ecc

Browse files
committed
Adds un-prefixed name prop
1 parent 0ba8828 commit a271ecc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/git/models/repository.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,11 @@ export class Repository implements Disposable {
258258
return this._name;
259259
}
260260

261+
private _nameWithoutWorktree: string;
262+
get nameWithoutWorktree(): string {
263+
return this._nameWithoutWorktree;
264+
}
265+
261266
private _idHash: string | undefined;
262267
get idHash() {
263268
if (this._idHash === undefined) {
@@ -301,6 +306,8 @@ export class Repository implements Disposable {
301306
// };
302307
}
303308

309+
this._nameWithoutWorktree = this._name;
310+
304311
// Update the name if it is a worktree
305312
void this.git.getGitDir().then(gd => {
306313
if (gd?.commonUri == null) return;

0 commit comments

Comments
 (0)