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

Method CurrentRemoteRef

git/git.go:383–390  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

381}
382
383func (c *Configuration) CurrentRemoteRef() (*Ref, error) {
384 remoteref, err := c.RemoteRefNameForCurrentBranch()
385 if err != nil {
386 return nil, err
387 }
388
389 return ResolveRef(remoteref)
390}
391
392// RemoteRefForCurrentBranch returns the full remote ref (refs/remotes/{remote}/{remotebranch})
393// that the current branch is tracking.

Callers 2

statusScanRefRangeFunction · 0.80

Calls 2

ResolveRefFunction · 0.85

Tested by 1