Interface FetchCommand

  • All Superinterfaces:
    GitCommand

    public interface FetchCommand
    extends GitCommand
    FetchCommand interface.
    • Method Detail

      • from

        FetchCommand from​(org.eclipse.jgit.transport.URIish remote,
                          List<org.eclipse.jgit.transport.RefSpec> refspecs)
        from.
        Parameters:
        remote - a URIish object.
        refspecs - a List object.
        Returns:
        a FetchCommand object.
      • prune

        FetchCommand prune​(boolean prune)
        prune.
        Parameters:
        prune - true if the fetch should prune.
        Returns:
        a FetchCommand object.
        Since:
        2.5.0
      • shallow

        FetchCommand shallow​(boolean shallow)
        shallow.
        Parameters:
        shallow - a boolean.
        Returns:
        a FetchCommand object.
      • depth

        FetchCommand depth​(Integer depth)
        When shallow cloning, allow for a depth to be set in cases where you need more than the immediate last commit. Has no effect if shallow is set to false (default)
        Parameters:
        depth - number of revisions to be included in shallow clone
        Returns:
        a CloneCommand object.