You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit b09395c
Browse filesBrowse the repository at this point in the historyBrowse files
committed
fix(git): stop reporting staged files when nothing was staged (#4763)
`git add` exits 0 when it stages nothing, so git_add returned
"Files staged successfully" for an empty file list and for '.' on a
clean tree. An empty list is now rejected (minItems: 1 in the schema,
plus a guard in git_add), and the index entries matching the pathspecs
are compared before and after the add, so a call that left the index
unchanged says "No changes were staged" instead.
The two protocol tests that pinned the false success (KNOWN BUG #4763)
now assert the rejection and the no-op message; the list_tools
snapshot gains the minItems constraint.
Ported from #4764 by Connor Moss (empty-list guard, schema minimum) and
#4849 by Sumo-99 (before/after index comparison scoped to the pathspecs).
Co-authored-by: Connor Moss <Conmoss30@gmail.com>
Co-authored-by: Sumo-99 <sumanthssr@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: cliffhall <cliff@futurescale.com>
0 commit comments