Merge remote-tracking branch 'origin/dev-1.1' into dev-1.1

This commit is contained in:
zhangshuai
2024-11-05 09:55:46 +08:00

View File

@@ -416,11 +416,12 @@ public class GitServiceImpl implements IGitService {
files.add(
T.MapUtil.builder()
.put("path", path)
.put("addedLines", (addedLines == 0 ? 0 : ++addedLines))
.put("removedLines", (deletedLines == 0 ? 0 : ++deletedLines))
.put("addedLines", addedLines)
.put("removedLines", deletedLines)
.put("encoding", encoding)
.put("oldContent", oldContent)
.put("newContent", newContent)
.put("action", diff.getChangeType().name().toLowerCase())
.build()
);
}