Resolve "Bug: не фиксируются признаки удаления и добавления файлов и строк" #53

Merged
BarminaA merged 1 commits from 26-bug-with-line into master 2021-04-27 16:20:11 +04:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit 0f14b1acd6 - Show all commits

View File

@ -10,9 +10,8 @@ import javax.persistence.Entity;
@Entity @Entity
public class LineChange extends BaseEntity { public class LineChange extends BaseEntity {
private Boolean added; private Boolean added = false;
private Boolean removed = false;
private Boolean removed;
private String lineFrom; private String lineFrom;
private String lineTo; private String lineTo;

View File

@ -260,6 +260,7 @@ public class GitRepositoryService {
} }
} }
} }
lineChange.setRemoved(true);
} }
if (strings[i].startsWith("+")) { if (strings[i].startsWith("+")) {
while ((i < stringsLength) && strings[i].startsWith("+")) { while ((i < stringsLength) && strings[i].startsWith("+")) {
@ -275,6 +276,7 @@ public class GitRepositoryService {
} }
} }
} }
lineChange.setAdded(true);
} }
if ((lineChange.getLineTo() != null) || (lineChange.getLineFrom() != null) if ((lineChange.getLineTo() != null) || (lineChange.getLineFrom() != null)
|| ((lineChange.getLineTo() != null) && (lineChange.getLineFrom() != null))) { || ((lineChange.getLineTo() != null) && (lineChange.getLineFrom() != null))) {