Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/go-git/go-git
/ ID
Method
ID
plumbing/object/commitgraph/commitnode_object.go:50–52 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
48
}
49
50
func
(c *objectCommitNode) ID() plumbing.Hash {
51
return
c.commit.ID()
52
}
53
54
func
(c *objectCommitNode) Tree() (*object.Tree, error) {
55
return
c.commit.Tree()
Callers
nothing calls this directly
Calls
1
ID
Method · 0.65
Tested by
no test coverage detected