NumParents returns the number of parents in a commit.
()
| 185 | |
| 186 | // NumParents returns the number of parents in a commit. |
| 187 | func (c *Commit) NumParents() int { |
| 188 | return len(c.ParentHashes) |
| 189 | } |
| 190 | |
| 191 | var ErrParentNotFound = errors.New("commit parent not found") |
| 192 |
no outgoing calls
no test coverage detected