MCPcopy Index your code
hub / github.com/go-git/go-git / FormatBool

Method FormatBool

config/optbool.go:49–51  ·  view source on GitHub ↗

FormatBool returns the strconv-formatted value. Only meaningful when IsSet.

()

Source from the content-addressed store, hash-verified

47
48// FormatBool returns the strconv-formatted value. Only meaningful when IsSet.
49func (o OptBool) FormatBool() string {
50 return strconv.FormatBool(o.IsTrue())
51}
52
53// parseConfigBool mirrors upstream Git's git_parse_maybe_bool: it
54// accepts true/yes/on (→ OptBoolTrue) and false/no/off (→

Callers 2

marshalCoreMethod · 0.80
marshalMethod · 0.80

Calls 1

IsTrueMethod · 0.95

Tested by

no test coverage detected