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

View File

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

View File

@ -260,6 +260,7 @@ public class GitRepositoryService {
}
}
}
lineChange.setRemoved(true);
}
if (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)
|| ((lineChange.getLineTo() != null) && (lineChange.getLineFrom() != null))) {