Skip to content

peelToCommit

Recursively peel an object until a commit is found.

Signature

ts
class GitObject {
  peelToCommit(): Commit;
}

Returns

  • Commit

    Git commit.

Released under the MIT License.