MCPcopy
hub / github.com/git-lfs/git-lfs / uploadsBetweenRefAndRemote

Function uploadsBetweenRefAndRemote

commands/command_push.go:90–102  ·  view source on GitHub ↗
(ctx *uploadContext, refnames []string)

Source from the content-addressed store, hash-verified

88}
89
90func uploadsBetweenRefAndRemote(ctx *uploadContext, refnames []string) {
91 tracerx.Printf("Upload refs %v to remote %v", refnames, ctx.Remote)
92
93 updates, err := lfsPushRefs(refnames, pushAll)
94 if err != nil {
95 Error(err.Error())
96 Exit(tr.Tr.Get("Error getting local refs."))
97 }
98
99 if err := uploadForRefUpdates(ctx, updates, pushAll); err != nil {
100 ExitWithError(err)
101 }
102}
103
104func uploadsWithObjectIDs(ctx *uploadContext, oids []string) {
105 pointers := make([]*lfs.WrappedPointer, len(oids))

Callers 1

pushCommandFunction · 0.85

Calls 7

lfsPushRefsFunction · 0.85
ErrorFunction · 0.85
ExitFunction · 0.85
uploadForRefUpdatesFunction · 0.85
ExitWithErrorFunction · 0.85
ErrorMethod · 0.65
GetMethod · 0.65

Tested by

no test coverage detected