Skip to content

Commit 012b468

Browse files
committed
fix(git): restore Message prefix, keep !r removal and branch error fix
1 parent dc5ba4c commit 012b468

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/git/src/mcp_server_git/server.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def git_log(repo: git.Repo, max_count: int = 10, start_timestamp: Optional[str]
181181
f"Commit: {log_output[i]}\n"
182182
f"Author: {log_output[i+1]}\n"
183183
f"Date: {log_output[i+2]}\n"
184-
f" {log_output[i+3]}\n"
184+
f"Message: {log_output[i+3]}\n"
185185
)
186186
return log
187187
else:
@@ -193,7 +193,7 @@ def git_log(repo: git.Repo, max_count: int = 10, start_timestamp: Optional[str]
193193
f"Commit: {commit.hexsha}\n"
194194
f"Author: {commit.author}\n"
195195
f"Date: {commit.authored_datetime}\n"
196-
f" {commit.message}\n"
196+
f"Message: {commit.message}\n"
197197
)
198198
return log
199199

0 commit comments

Comments
 (0)