Interface RepoCommits

All Superinterfaces:
JsonReadable

@Immutable public interface RepoCommits extends JsonReadable
Commits of a GitHub repository.
Since:
0.3
See Also:
  • Method Details

    • iterate

      Iterable<RepoCommit> iterate(Map<String,String> params)
      Iterate all repository's commits.
      Parameters:
      params - Url's parameters
      Returns:
      All commits
      See Also:
    • get

      RepoCommit get(String sha)
      Get single repository's commits.
      Parameters:
      sha - SHA of a commit
      Returns:
      RepoCommit
      See Also:
    • compare

      CommitsComparison compare(String base, String head)
      Compare two commits.
      Parameters:
      base - SHA of the base repo commit
      head - SHA of the head repo commit
      Returns:
      Commits comparison
    • diff

      String diff(String base, String head) throws IOException
      Compare two commits and provide result in diff format.
      Parameters:
      base - SHA of the base repo commit
      head - SHA of the head repo commit
      Returns:
      Commits comparison
      Throws:
      IOException - If there is any I/O problem
      Since:
      0.8
    • patch

      String patch(String base, String head) throws IOException
      Compare two commits and provide result in patch format.
      Parameters:
      base - SHA of the base repo commit
      head - SHA of the head repo commit
      Returns:
      Commits comparison
      Throws:
      IOException - If there is any I/O problem
      Since:
      0.8