MCPcopy Create free account
hub / github.com/GCWing/BitFun / push

Method push

src/web-ui/src/tools/git/services/GitService.ts:303–315  ·  view source on GitHub ↗

* Push to remote.

(repositoryPath: string, params: GitPushParams = {})

Source from the content-addressed store, hash-verified

301 * Push to remote.
302 */
303 async push(repositoryPath: string, params: GitPushParams = {}): Promise<GitOperationResult> {
304 try {
305 await this.ensureFreshOperationState(repositoryPath);
306 const result = await gitAPI.push(repositoryPath, params);
307 return result;
308 } catch (error) {
309 log.error('Failed to push', error);
310 return {
311 success: false,
312 error: error instanceof Error ? error.message : i18nService.t('panels/git:errors.pushFailed')
313 };
314 }
315 }
316
317 /**
318 * Pull from remote.

Callers 15

ReferencesPanelFunction · 0.45
getDebugInfoMethod · 0.45
onDiagnosticsMethod · 0.45
setupEventListenersMethod · 0.45
getOpenDocumentsMethod · 0.45
addGlobalProviderMethod · 0.45
provideHoverMethod · 0.45
provideRenameEditsMethod · 0.45
setupEditorListenersMethod · 0.45
getStatisticsMethod · 0.45

Calls 3

errorMethod · 0.45
tMethod · 0.45

Tested by 5

constructorMethod · 0.36
createContextFunction · 0.36
makeContextFunction · 0.36
insertToolFunction · 0.36