MCPcopy Index your code
hub / github.com/git-lfs/git-lfs / Begin

Method Begin

tq/ssh.go:399–406  ·  view source on GitHub ↗

Begin a new batch of uploads or downloads. Call this first, followed by one or more Add calls. The passed in callback will receive updates on progress.

(cfg AdapterConfig, cb ProgressCallback)

Source from the content-addressed store, hash-verified

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.
399func (a *SSHAdapter) Begin(cfg AdapterConfig, cb ProgressCallback) error {
400 if err := a.adapterBase.Begin(cfg, cb); err != nil {
401 return err
402 }
403 a.ctx = a.adapterBase.apiClient.Context()
404 a.debugging = a.ctx.OSEnv().Bool("GIT_TRANSFER_TRACE", false)
405 return nil
406}
407
408func (a *SSHAdapter) Trace(format string, args ...interface{}) {
409 if !a.adapterBase.debugging {

Callers

nothing calls this directly

Calls 4

BeginMethod · 0.65
ContextMethod · 0.65
BoolMethod · 0.65
OSEnvMethod · 0.65

Tested by

no test coverage detected