mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-03 20:15:52 +01:00
rename trailer to contributor
This commit is contained in:
@@ -182,7 +182,7 @@ public class GitChangesetConverter implements Closeable
|
||||
|
||||
Changeset changeset = new Changeset(id, date, author, message);
|
||||
if (!committerIdent.equals(authorIndent)) {
|
||||
changeset.addTrailer(new Trailer("Committed-by", createPersonFor(committerIdent)));
|
||||
changeset.addContributor(new Contributor("Committed-by", createPersonFor(committerIdent)));
|
||||
}
|
||||
|
||||
if (parentList != null)
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
package sonia.scm.repository.spi;
|
||||
|
||||
import com.google.common.io.Files;
|
||||
import org.assertj.core.api.Assertions;
|
||||
import org.junit.Test;
|
||||
import org.junit.runner.RunWith;
|
||||
import org.mockito.Mock;
|
||||
@@ -273,7 +272,7 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase
|
||||
}
|
||||
|
||||
@Test
|
||||
public void shouldAppendCommitterAsTrailer() {
|
||||
public void shouldAppendCommitterAsContributor() {
|
||||
LogCommandRequest request = new LogCommandRequest();
|
||||
request.setStartChangeset("fcd0ef1831e4002ac43ea539f4094334c79ea9ec");
|
||||
request.setEndChangeset("fcd0ef1831e4002ac43ea539f4094334c79ea9ec");
|
||||
@@ -281,8 +280,8 @@ public class GitLogCommandTest extends AbstractGitCommandTestBase
|
||||
ChangesetPagingResult changesets = createCommand().getChangesets(request);
|
||||
Changeset changeset = changesets.getChangesets().get(0);
|
||||
|
||||
assertThat(changeset.getTrailers()).hasSize(1);
|
||||
assertThat(changeset.getTrailers().iterator().next().getPerson())
|
||||
assertThat(changeset.getContributors()).hasSize(1);
|
||||
assertThat(changeset.getContributors().iterator().next().getPerson())
|
||||
.isEqualTo(new Person("Sebastian Sdorra", "s.sdorra@ostfalia.de"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user