|
@ -308,6 +308,7 @@ export class GraphWebviewProvider implements WebviewProvider { |
|
|
registerCommand('gitlens.graph.push', this.push, this), |
|
|
registerCommand('gitlens.graph.push', this.push, this), |
|
|
registerCommand('gitlens.graph.pull', this.pull, this), |
|
|
registerCommand('gitlens.graph.pull', this.pull, this), |
|
|
registerCommand('gitlens.graph.fetch', this.fetch, this), |
|
|
registerCommand('gitlens.graph.fetch', this.fetch, this), |
|
|
|
|
|
registerCommand('gitlens.graph.publishBranch', this.publishBranch, this), |
|
|
registerCommand('gitlens.graph.switchToAnotherBranch', this.switchToAnother, this), |
|
|
registerCommand('gitlens.graph.switchToAnotherBranch', this.switchToAnother, this), |
|
|
|
|
|
|
|
|
registerCommand('gitlens.graph.createBranch', this.createBranch, this), |
|
|
registerCommand('gitlens.graph.createBranch', this.createBranch, this), |
|
@ -2018,6 +2019,16 @@ export class GraphWebviewProvider implements WebviewProvider { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@debug() |
|
|
@debug() |
|
|
|
|
|
private publishBranch(item?: GraphItemContext) { |
|
|
|
|
|
if (isGraphItemRefContext(item, 'branch')) { |
|
|
|
|
|
const { ref } = item.webviewItemValue; |
|
|
|
|
|
return RepoActions.push(ref.repoPath, undefined, ref); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return Promise.resolve(); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@debug() |
|
|
private rebase(item?: GraphItemContext) { |
|
|
private rebase(item?: GraphItemContext) { |
|
|
const ref = this.getGraphItemRef(item); |
|
|
const ref = this.getGraphItemRef(item); |
|
|
if (ref == null) return Promise.resolve(); |
|
|
if (ref == null) return Promise.resolve(); |
|
|