coupled_files
Identify files that change in the same commits as a given repository file, returning co-change counts and ratios to reveal hidden coupling.
Instructions
Files that change in the same commits as the given file, with how often (co_changes) and the share of the file's commits (ratio). High ratios reveal hidden coupling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File path relative to the repository root | |
| repo | Yes | Repository alias, see the git-insights://repos resource | |
| limit | No | Maximum number of items to return |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| repo | Yes | ||
| coupled | Yes | Ranked by co_changes, then path | |
| file_commits | Yes | Non-merge commits that changed the given file |