@Immutable public interface RepoCommits extends JsonReadable
Modifier and Type | Method and Description |
---|---|
CommitsComparison |
compare(String base,
String head)
Compare two commits.
|
String |
diff(String base,
String head)
Compare two commits and provide result in diff format.
|
RepoCommit |
get(String sha)
Get single repository's commits.
|
Iterable<RepoCommit> |
iterate(Map<String,String> params)
Iterate all repository's commits.
|
String |
patch(String base,
String head)
Compare two commits and provide result in patch format.
|
json
@NotNull(message="iterable is never NULL") Iterable<RepoCommit> iterate(@NotNull(message="params can\'t be NULL") Map<String,String> params)
params
- Url's parameters@NotNull(message="RepoCommit is never NULL") RepoCommit get(@NotNull(message="sha is never NULL") String sha)
sha
- SHA of a commit@NotNull(message="repo commits comparison is never NULL") CommitsComparison compare(@NotNull(message="base is never NULL") String base, @NotNull(message="base is never NULL") String head)
base
- SHA of the base repo commithead
- SHA of the head repo commit@NotNull(message="repo commits comparison is never NULL") String diff(@NotNull(message="base is never NULL") String base, @NotNull(message="head is never NULL") String head) throws IOException
base
- SHA of the base repo commithead
- SHA of the head repo commitIOException
- If there is any I/O problem@NotNull(message="repo commits comparison is never NULL") String patch(@NotNull(message="base is never NULL") String base, @NotNull(message="head is never NULL") String head) throws IOException
base
- SHA of the base repo commithead
- SHA of the head repo commitIOException
- If there is any I/O problemCopyright © 2012–2014 jcabi.com. All rights reserved.