Class GitWrapperImpl

java.lang.Object
com.github.gastaldi.git.impl.GitWrapperImpl
All Implemented Interfaces:
GitWrapper

public class GitWrapperImpl
extends java.lang.Object
implements GitWrapper
Author:
Lukas Zaruba, lukas.zaruba@lundegaard.eu, 2019
  • Constructor Summary

    Constructors 
    Constructor Description
    GitWrapperImpl()  
  • Method Summary

    Modifier and Type Method Description
    GitWrapper addRemote​(java.lang.String remote)
    Adds remote named origin
    GitWrapper clean()
    Deletes .git directory in given path removing traces that this was ever a git repository
    GitWrapper configureSparseCheckout​(java.util.List<java.lang.String> paths)
    Configures repository to do sparse checkout populating configuration with given checkout paths
    GitWrapper ensureDirectory()
    Checks whether the pwd directory exists and creates if it doesn't
    GitWrapper initialize​(java.nio.file.Path pwd)
    Initializes this wrapper with pwd.
    GitWrapper initRepository()
    Initializes new git repository in given path
    GitWrapper pull​(java.lang.String branch)
    Performs git pull using origin remote and given branch

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait