Interface RepoCommits

    • Method Detail

      • 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