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

Method Refspec

git/git.go:115–126  ·  view source on GitHub ↗

Refspec returns the fully-qualified reference name (including remote), i.e., for a remote branch called 'my-feature' on remote 'origin', this function will return: refs/remotes/origin/my-feature

()

Source from the content-addressed store, hash-verified

113//
114// refs/remotes/origin/my-feature
115func (r *Ref) Refspec() string {
116 if r == nil {
117 return ""
118 }
119
120 prefix, ok := r.Type.Prefix()
121 if ok {
122 return fmt.Sprintf("%s/%s", prefix, r.Name)
123 }
124
125 return r.Name
126}
127
128// HasValidObjectIDLength returns true if `s` has a length that is a valid
129// hexadecimal Git object ID length.

Callers 14

UnlockMethod · 0.80
LockFileMethod · 0.80
SearchLocksVerifiableMethod · 0.80
searchRemoteLocksMethod · 0.80
lockIdFromPathMethod · 0.80
prepareCacheDirectoryMethod · 0.80
includeExcludeRefsFunction · 0.80
formatRefNameFunction · 0.80
fetchCommandFunction · 0.80
VerifyMethod · 0.80
UpdateRefFunction · 0.80
TestRefStringFunction · 0.80

Calls 1

PrefixMethod · 0.80

Tested by 1

TestRefStringFunction · 0.64