Skip to content

Commit dfdc5ad

Browse files
nzaytsevd13
authored andcommitted
Hides sync functionality
1 parent 27090c9 commit dfdc5ad

File tree

2 files changed

+6
-21
lines changed

2 files changed

+6
-21
lines changed

src/plus/webviews/graph/graphWebview.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2856,11 +2856,13 @@ export class GraphWebviewProvider implements WebviewProvider<State, State, Graph
28562856
void RepoActions.fetch(this.repository, ref);
28572857
}
28582858

2859+
// @unimplemented
28592860
@log()
2860-
private async sync(item?: GraphItemContext) {
2861-
const ref = item != null ? this.getGraphItemRef(item, 'branch') : undefined;
2862-
await RepoActions.pull(this.repository, ref);
2863-
void RepoActions.push(this.repository, undefined, ref);
2861+
private sync(item?: GraphItemContext) {
2862+
throw new Error('unimplemented');
2863+
// const ref = item != null ? this.getGraphItemRef(item, 'branch') : undefined;
2864+
// await RepoActions.pull(this.repository, ref);
2865+
// void RepoActions.push(this.repository, undefined, ref);
28642866
}
28652867

28662868
@log()

src/webviews/apps/plus/graph/actions/syncButton.tsx

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ export const SyncButton = ({
4949
</>
5050
);
5151
if (isAhead) {
52-
action = 'sync';
53-
icon = 'codicon codicon-repo-sync';
54-
label = 'Sync';
5552
tooltip = (
5653
<>
5754
{tooltip}
@@ -132,20 +129,6 @@ export const SyncButton = ({
132129
</button>
133130
<MenuList slot="content" style={{ width: 120 }}>
134131
<MenuLabel>Git actions</MenuLabel>
135-
<GlTooltip>
136-
<MenuItem>
137-
<a
138-
href={createWebviewCommandLink(
139-
'gitlens.graph.sync',
140-
state.webviewId,
141-
state.webviewInstanceId,
142-
)}
143-
>
144-
Sync
145-
</a>
146-
</MenuItem>
147-
<span slot="content">Run pull then push</span>
148-
</GlTooltip>
149132
<MenuItem>
150133
<a
151134
href={createWebviewCommandLink(

0 commit comments

Comments
 (0)