capabilities.work

Get the raw diff of a commit

One step with Harness. We can help you get access.

Look something up

Get the raw diff of a commit

with Harness
Works with AI assistants

Use Harness: its Harness Repository API lets you get the raw diff of a commit in a single step (GET /code/api/v1/repos/{repo_identifier}/commits/{commit_sha}/diff). Harness also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • Can I see exactly what changed in one commit as a raw patch?
  • What lines did a specific commit add and remove?
Say it to your AI assistant
  • Get the raw diff for commit {sha} in repository {repo}.
  • Show the patch introduced by commit {sha} in repo {repo}.
For your developer

GET /code/api/v1/repos/{repo_identifier}/commits/{commit_sha}/diff in Harness Repository API. Full spec on APIs.io.