Remove unused Commit class from GitUtil
Change-Id: I6ebd84d8ce8e090523927f7f9434ba548c62b42f Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
committed by
David Pursehouse
parent
74861171bc
commit
1e769cfdda
@@ -152,24 +152,6 @@ public class GitUtil {
|
||||
return Iterables.getOnlyElement(r);
|
||||
}
|
||||
|
||||
public static class Commit {
|
||||
private final RevCommit commit;
|
||||
private final String changeId;
|
||||
|
||||
Commit(RevCommit commit, String changeId) {
|
||||
this.commit = commit;
|
||||
this.changeId = changeId;
|
||||
}
|
||||
|
||||
public RevCommit getCommit() {
|
||||
return commit;
|
||||
}
|
||||
|
||||
public String getChangeId() {
|
||||
return changeId;
|
||||
}
|
||||
}
|
||||
|
||||
public static Optional<String> getChangeId(TestRepository<?> tr, ObjectId id)
|
||||
throws IOException {
|
||||
RevCommit c = tr.getRevWalk().parseCommit(id);
|
||||
|
||||
Reference in New Issue
Block a user