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

Method argumentsForTransfer

tq/ssh.go:381–395  ·  view source on GitHub ↗
(t *Transfer, action string)

Source from the content-addressed store, hash-verified

379}
380
381func (a *SSHAdapter) argumentsForTransfer(t *Transfer, action string) []string {
382 args := make([]string, 0, 3)
383 set, ok := t.Actions[action]
384 if !ok {
385 return nil
386 }
387 args = append(args, fmt.Sprintf("size=%d", t.Size))
388 if set.Id != "" {
389 args = append(args, fmt.Sprintf("id=%s", set.Id))
390 }
391 if set.Token != "" {
392 args = append(args, fmt.Sprintf("token=%s", set.Token))
393 }
394 return args
395}
396
397// Begin a new batch of uploads or downloads. Call this first, followed by one
398// or more Add calls. The passed in callback will receive updates on progress.

Callers 3

doDownloadMethod · 0.95
verifyUploadMethod · 0.95
doUploadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected