MCPcopy Create free account
hub / github.com/libgit2/git2go / mapEmptyStringToNull

Function mapEmptyStringToNull

rebase.go:273–278  ·  view source on GitHub ↗
(ref string)

Source from the content-addressed store, hash-verified

271}
272
273func mapEmptyStringToNull(ref string) *C.char {
274 if ref == "" {
275 return nil
276 }
277 return C.CString(ref)
278}
279
280// Rebase is the struct representing a Rebase object.
281type Rebase struct {

Callers 1

populateRebaseOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…