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

Merged
BarminaA merged 1 commits from 26-bug-with-line into master 3 years ago

@ -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;

@ -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))) {

Loading…
Cancel
Save