MCPcopy
hub / github.com/desktop/desktop / push

Method push

app/src/ui/app.tsx:994–1005  ·  view source on GitHub ↗
(options?: { forceWithLease: boolean })

Source from the content-addressed store, hash-verified

992 }
993
994 private push(options?: { forceWithLease: boolean }) {
995 const state = this.state.selectedState
996 if (state == null || state.type !== SelectionType.Repository) {
997 return
998 }
999
1000 if (options && options.forceWithLease) {
1001 this.props.dispatcher.confirmOrForcePush(state.repository)
1002 } else {
1003 this.props.dispatcher.push(state.repository)
1004 }
1005 }
1006
1007 private async pull() {
1008 const state = this.state.selectedState

Callers 15

onMenuEventMethod · 0.95
findTestFilesInFunction · 0.45
generateLicenseMetadataFunction · 0.45
convertToChangelogFormatFunction · 0.45
getChangelogEntriesSinceFunction · 0.45
runFunction · 0.45
sendMethod · 0.45
invokeMethod · 0.45
onMethod · 0.45
captureClipboardWritesFunction · 0.45

Calls 1

confirmOrForcePushMethod · 0.80

Tested by

no test coverage detected