MCPcopy Index your code
hub / github.com/sinclairtarget/git-who / Name

Method Name

internal/git/git.go:31–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29}
30
31func (c Commit) Name() string {
32 if c.ShortHash != "" {
33 return c.ShortHash
34 } else if c.Hash != "" {
35 return c.Hash
36 } else {
37 return "unknown"
38 }
39}
40
41func (c Commit) String() string {
42 return fmt.Sprintf(

Callers 2

StringMethod · 0.95
ParseCommitsFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected