How many commits since a ref, ignoring generated files?
rrt_git_commits_sinceList Git commits from a specified ref to HEAD while filtering out commits that only modify excluded or generated paths.
Instructions
List commits in ..HEAD, leaving out commits that only touch exclude paths.
A file that records HEAD can exclude itself, making "one commit behind" its
resting state. Patterns are root-anchored git globs. exclude_generated adds every
[tool.rrt.git].generated pattern. An unknown ref returns error, never count 0.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ref": "<ref>"
},
"name": "rrt_git_commits_since"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| exclude | No | ||
| exclude_generated | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ref | Yes | ||
| count | No | ||
| error | No | ||
| commits | No | ||
| exclude | No |