The write of a Commit does not ensure that the parents are git commits. It will write this Commit to the ODB and cause issues down the line.
Instead, we should check that each parent points to a commit -- doing so in as cheap a way as possible, if any of them are not then we should reject the write.
The
write
of aCommit
does not ensure that the parents are git commits. It will write thisCommit
to the ODB and cause issues down the line.Instead, we should check that each parent points to a commit -- doing so in as cheap a way as possible, if any of them are not then we should reject the write.