Skip to content

Commit 5fef755

Browse files
cliffhallclaude
andcommitted
docs(git): note git_commit's merge exception in the README
git_commit still allows an empty commit while MERGE_HEAD is present, as git does; the README now says so (Copilot review on #5007). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: cliffhall <[email protected]>
1 parent b09395c commit 5fef755

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/git/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Please note that mcp-server-git is currently in early development. The functiona
4747
- Inputs:
4848
- `repo_path` (string): Path to Git repository
4949
- `message` (string): Commit message
50-
- Returns: Confirmation with new commit hash; an error if nothing is staged (as `git commit` without `--allow-empty`)
50+
- Returns: Confirmation with new commit hash; an error if nothing is staged (as `git commit` without `--allow-empty`), except while a merge is in progress (`MERGE_HEAD` present), where git also allows an empty commit
5151

5252
6. `git_add`
5353
- Adds file contents to the staging area

0 commit comments

Comments
 (0)