capabilities.work

Get line changes for a commit range

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

Look something up

Get line changes for a commit range

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Repositories API lets you get line changes for a commit range in a single step (GET /api/v4/projects/{id}/repository/diff_stats). GitLab 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.

  • How many lines were added and removed between two commits in my repo?
  • Can I see file-by-file diff statistics for a merge request?
Say it to your AI assistant
  • Show diff stats between {from} and {to} in project {id}.
  • Get the lines added and removed between {from} and {to} for project {id}.
For your developer

GET /api/v4/projects/{id}/repository/diff_stats in GitLab REST Repositories API. Full spec on APIs.io.