Radish alpha
r
Radicle web interface
Radicle
Git (anonymous pull)
Log in to clone via SSH
Undo line diff type change, it was unnecessary
Rūdolfs Ošiņš committed 3 years ago
commit 5f0d187ecd7c11339da87e24d8ae4d91ac92094f
parent 4bb34023c2db9a184a4e831a27321630d56d3167
2 files changed +1 -4
modified src/lib/diff.ts
@@ -41,7 +41,7 @@ export const lineSign = (line: LineDiff): string => {
};

export enum LineDiffType {
-
  Addition = "insertion",
+
  Addition = "addition",
  Context = "context",
  Deletion = "deletion",
}
modified src/lib/project.ts
@@ -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"];