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 0e729d3
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: src/git/README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,14 +47,14 @@ Please note that mcp-server-git is currently in early development. The functiona
47
47
- Inputs:
48
48
-`repo_path` (string): Path to Git repository
49
49
-`message` (string): Commit message
50
-
- Returns: Confirmation with new commit hash
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. While a merge is in progress the commit concludes it: its parents are `HEAD` and every `MERGE_HEAD` commit, and the merge state is cleared
51
51
52
52
6.`git_add`
53
53
- Adds file contents to the staging area
54
54
- Inputs:
55
55
-`repo_path` (string): Path to Git repository
56
-
-`files` (string[]): Array of file paths to stage
57
-
- Returns: Confirmation of staged files
56
+
-`files` (string[]): Non-empty array of file paths to stage; `["."]` stages everything
57
+
- Returns: Confirmation of staged files, or a message saying nothing was staged when the call left the index unchanged
0 commit comments