PIERRE COMPUTER COMPANY
CODE STORAGE
2026
<< back
Date:NOV.03.2025Feature:Custom ranges with getCommitDiffAuthor:Ian Ownbey
------

getCommitDiff now supports explicit base comparisons via a sha and baseSha.

// Get commit diff relative to a specific base
const customDiff = await repo.getCommitDiff({
  sha: 'abc123def456...',
  baseSha: 'def789abc123...', // optional base commit to compare against
});

With this update, you can now request diffs across arbitrary ranges by specifying the commit you want to inspect and the base sha to compare it against.

See the docs →

+ UP NEXT +