|
|
@ -37,7 +37,9 @@ export class BranchesNode extends ViewNode { |
|
|
|
}); |
|
|
|
if (branches.length === 0) return [new MessageNode(this.view, this, 'No branches could be found.')]; |
|
|
|
|
|
|
|
const branchNodes = branches.map(b => new BranchNode(this.uri, this.view, this, b)); |
|
|
|
const branchNodes = branches.map( |
|
|
|
b => new BranchNode(GitUri.fromRepoPath(this.uri.repoPath!, b.ref), this.view, this, b), |
|
|
|
); |
|
|
|
if (this.view.config.branches.layout === ViewBranchesLayout.List) return branchNodes; |
|
|
|
|
|
|
|
const hierarchy = Arrays.makeHierarchical( |
|
|
|