Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/libgit2/git2go
/ cbool
Function
cbool
git.go:342–347 ·
view source on GitHub ↗
(b bool)
Source
from the content-addressed store, hash-verified
340
}
341
342
func
cbool(b bool) C.int {
343
if
b {
344
return
C.int(1)
345
}
346
return
C.int(0)
347
}
348
349
func
ucbool(b bool) C.uint {
350
if
b {
Callers
15
SetWorkdir
Method · 0.85
CreateBranch
Method · 0.85
Move
Method · 0.85
Discover
Function · 0.85
smartTransportCallback
Function · 0.85
Create
Method · 0.85
CreateSymbolic
Method · 0.85
Rename
Method · 0.85
populateCloneOptions
Function · 0.85
ParseRefspec
Function · 0.85
populateCheckoutOptions
Function · 0.85
CreateLightweight
Method · 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…