Class GitHelper


  • public class GitHelper
    extends Object
    Helper class for git.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • GitHelper

        public GitHelper()
    • Method Detail

      • format

        public static String format​(org.eclipse.jgit.transport.RemoteRefUpdate update)
        Turns the update into a string.
        Parameters:
        update - the update to format
        Returns:
        the generated string
      • format

        public static String format​(org.eclipse.jgit.transport.FetchResult fetch)
        Formats a fetch result.
        Parameters:
        fetch - the result to format
        Returns:
        the generated string
      • format

        public static String format​(org.eclipse.jgit.api.MergeResult merge)
        Formats a merge result.
        Parameters:
        merge - the result to format
        Returns:
        the generated string
      • format

        public static String format​(org.eclipse.jgit.api.RebaseResult rebase)
        Formats a rebase result.
        Parameters:
        rebase - the result to format
        Returns:
        the generated string
      • format

        public static String format​(org.eclipse.jgit.api.PullResult pull)
        Turns the pull result into a legible string.
        Parameters:
        pull - the result to format
        Returns:
        the generated string