Operation detail

Back to operation catalog

git.add

Stages explicit local git pathspecs and returns the post-add status snapshot.

FieldValue
Classlocal_transition
Ownersidecatd.git-effects
Input schemasidecat.git_add_request.v0
Output schemasidecat.git_add_response.v0

Input template

{
  "pathspecs": [
    "path/to/file"
  ],
  "repo": "/path/to/git/worktree",
  "schema": "sidecat.git_add_request.v0"
}