Class Repo

java.lang.Object
clazzfish.spi.git.Repo
All Implemented Interfaces:
AutoCloseable

public class Repo extends Object implements AutoCloseable
The class Repo is responsible for the access to a GIT repository.
Since:
2.6 (19.03.25)
Author:
oboehm
  • Method Details

    • getSshKeyFile

      public static File getSshKeyFile()
    • of

      public static Repo of(URI gitURI) throws IOException, org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      IOException
      org.eclipse.jgit.api.errors.GitAPIException
    • getRepoPathOf

      public static Path getRepoPathOf(URI gitURI)
    • getDir

      public File getDir()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getStatus

      public org.eclipse.jgit.api.Status getStatus() throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
    • add

      public void add(File... files) throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
    • commit

      public void commit(String message) throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException
    • push

      public Iterable<org.eclipse.jgit.transport.PushResult> push() throws org.eclipse.jgit.api.errors.GitAPIException
      Throws:
      org.eclipse.jgit.api.errors.GitAPIException