Package com.jcabi.github
Interface RepoCommits
- All Superinterfaces:
JsonReadable
Commits of a GitHub repository.
- Since:
- 0.3
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionCompare two commits.Compare two commits and provide result in diff format.Get single repository's commits.Iterate all repository's commits.Compare two commits and provide result in patch format.Methods inherited from interface com.jcabi.github.JsonReadable
json
-
Method Details
-
iterate
Iterate all repository's commits.- Parameters:
params- Url's parameters- Returns:
- All commits
- See Also:
-
get
Get single repository's commits.- Parameters:
sha- SHA of a commit- Returns:
- RepoCommit
- See Also:
-
compare
Compare two commits.- Parameters:
base- SHA of the base repo commithead- SHA of the head repo commit- Returns:
- Commits comparison
-
diff
Compare two commits and provide result in diff format.- Parameters:
base- SHA of the base repo commithead- SHA of the head repo commit- Returns:
- Commits comparison
- Throws:
IOException- If there is any I/O problem- Since:
- 0.8
-
patch
Compare two commits and provide result in patch format.- Parameters:
base- SHA of the base repo commithead- SHA of the head repo commit- Returns:
- Commits comparison
- Throws:
IOException- If there is any I/O problem- Since:
- 0.8
-