This commit is contained in:
2026-06-22 08:55:57 +08:00
parent dbb87823e8
commit 6ade6e8fa9
325 changed files with 41131 additions and 855 deletions
+7
View File
@@ -131,3 +131,10 @@ type commitLogResp struct {
func toCommitLogResp(c git.Commit) commitLogResp {
return commitLogResp{Hash: c.Hash, Author: c.Author, Email: c.Email, Date: c.Date, Subject: c.Subject}
}
// diffResp 是 GET /diff 的响应体:原始 unified-diff 文本 + 截断标志。
// 不在后端解析 hunk,由前端 DiffViewer 负责。
type diffResp struct {
Diff string `json:"diff"`
Truncated bool `json:"truncated"`
}