mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
Patch hunks with new lines
This commit is contained in:
@@ -77,7 +77,7 @@ class DiffResultToDiffResultDtoMapper {
|
||||
private DiffResultDto.FileDto mapFile(DiffFile file, Repository repository, String revision) {
|
||||
Links.Builder links = linkingTo();
|
||||
if (file.iterator().hasNext()) {
|
||||
links.single(linkBuilder("lines", resourceLinks.source().content(repository.getNamespace(), repository.getName(), revision, file.getNewPath()) + "?start={start}?end={end}").build());
|
||||
links.single(linkBuilder("lines", resourceLinks.source().content(repository.getNamespace(), repository.getName(), revision, file.getNewPath()) + "?start={start}&end={end}").build());
|
||||
}
|
||||
DiffResultDto.FileDto dto = new DiffResultDto.FileDto(links.build());
|
||||
// ???
|
||||
|
||||
Reference in New Issue
Block a user