NumParents returns the number of parents in a commit.
()
| 131 | |
| 132 | // NumParents returns the number of parents in a commit. |
| 133 | func (c *Commit) NumParents() int { |
| 134 | return len(c.ParentHashes) |
| 135 | } |
| 136 | |
| 137 | var ErrParentNotFound = errors.New("commit parent not found") |
| 138 |
no outgoing calls
no test coverage detected