func (commit *Commit) Id() *Oid { oid := new(Oid) oid.git_oid = C.git_commit_id(commit.git_commit) if oid.git_oid == nil { return nil } return oid }
func (c *Commit) Id() *Oid { return newOidFromC(C.git_commit_id(c.ptr)) }
// Id returns the hash of the commit. func (c *Commit) Id() string { oid := C.git_commit_id(c.commit) defer C.free(unsafe.Pointer(oid)) return oidToString(oid) }
func (o gitObject) Id() *Oid { return newOidFromC(C.git_commit_id(o.ptr)) }