PIERRE COMPUTER COMPANY
CODE STORAGE
2026
← Back
------
Feature:

Custom ranges with getCommitDiff

Date:November 03, 2025Author:Ian OwnbeyCategory:ENGINEERING
------

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 →

+ Recently +