mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-16 03:40:37 +08:00
Undo line diff type change, it was unnecessary
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
This commit is contained in:
+1
-1
@@ -41,7 +41,7 @@ export const lineSign = (line: LineDiff): string => {
|
||||
};
|
||||
|
||||
export enum LineDiffType {
|
||||
Addition = "insertion",
|
||||
Addition = "addition",
|
||||
Context = "context",
|
||||
Deletion = "deletion",
|
||||
}
|
||||
|
||||
@@ -289,9 +289,6 @@ export class Project implements ProjectInfo {
|
||||
for (const file of result.diff[kind]) {
|
||||
for (const hunk of file.diff.hunks) {
|
||||
for (const line of hunk.lines) {
|
||||
if (line["type"] === "addition") {
|
||||
line["type"] = "insertion";
|
||||
}
|
||||
if (line["lineNumOld"]) {
|
||||
line["lineNoOld"] = line["lineNumOld"];
|
||||
delete line["lineNumOld"];
|
||||
|
||||
Reference in New Issue
Block a user