Skip to main content
This page documents the earlier Code Storage SDKs: @pierre/storage, pierre-storage, and code-storage-go. New code uses the Pierre SDK. To move code to the new SDK, use the pierre-migrate skill.

Options

string
required
The branch name to get the diff for
string
Base branch to compare against (defaults to repository’s default branch)
string
When true, resolves the branch under the ephemeral namespace
string
When true, resolves the base branch under the ephemeral namespace
string
Array of file paths to filter the diff. When provided, only returns diffs for the specified files and bypasses size/type filtering

Response

object
Summary with files, additions, deletions, and changes
array
List of changed files with path, oldPath, state, rawState, and diff content

Notes

  • For renamed files, path is the new location and oldPath is the previous location
  • state is normalized to renamed, while rawState preserves Git’s original rename code (for example R054, where 054 is the similarity score)