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

Method QueryValues

locking/api.go:170–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (r *lockSearchRequest) QueryValues() map[string]string {
171 q := make(map[string]string)
172 for _, filter := range r.Filters {
173 q[filter.Property] = filter.Value
174 }
175
176 if len(r.Cursor) > 0 {
177 q["cursor"] = r.Cursor
178 }
179
180 if r.Limit > 0 {
181 q["limit"] = strconv.Itoa(r.Limit)
182 }
183
184 if len(r.Refspec) > 0 {
185 q["refspec"] = r.Refspec
186 }
187
188 return q
189}
190
191// LockList encapsulates a set of Locks.
192type lockList struct {

Callers 2

SearchMethod · 0.80
SearchMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected