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( files.add(
T.MapUtil.builder() T.MapUtil.builder()
.put("path", path) .put("path", path)
.put("addedLines", (addedLines == 0 ? 0 : ++addedLines)) .put("addedLines", addedLines)
.put("removedLines", (deletedLines == 0 ? 0 : ++deletedLines)) .put("removedLines", deletedLines)
.put("encoding", encoding) .put("encoding", encoding)
.put("oldContent", oldContent) .put("oldContent", oldContent)
.put("newContent", newContent) .put("newContent", newContent)
.put("action", diff.getChangeType().name().toLowerCase())
.build() .build()
); );
} }