crosspad_submodule_update
Update a submodule in a parent repo to the latest commit on a tracking branch, discarding local commits not on the remote branch.
Instructions
Update a submodule in a parent repo to the latest commit on a tracking branch (git fetch + checkout origin/ + stage). Destructive: discards local commits in the submodule that aren't on the remote branch.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | Parent repo containing the submodule (idf, pc, arduino, or full name) | |
| branch | No | Remote branch to track (e.g. main, develop) | main |
| submodule | Yes | Which submodule to operate on |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| error | No | ||
| staged | Yes | ||
| new_sha | Yes | ||
| old_sha | Yes | ||
| success | Yes | ||
| submodule | Yes | ||
| changed_files | Yes | ||
| commits_pulled | Yes |