Class DtPullResult

java.lang.Object
com._1c.g5.v8.dt.compare.git.pull.DtPullResult

public class DtPullResult extends Object
Encapsulates the result of pull command with a rebase mode. Based on PullResult
  • Constructor Summary

    Constructors
    Constructor
    Description
    DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.MergeResult mergeResult)
    Creates a new instance with the given parameters.
    DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.RebaseResult rebaseResult)
    Creates a new instance with the given parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get name of the remote configuration from which fetch was tried
    org.eclipse.jgit.transport.FetchResult
    Get fetch result
    org.eclipse.jgit.api.MergeResult
    Get merge result
    org.eclipse.jgit.api.RebaseResult
    Get rebase result
    boolean
    Whether the pull was successful
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • DtPullResult

      public DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.RebaseResult rebaseResult)
      Creates a new instance with the given parameters.
      Parameters:
      fetchResult - fetch result, can be null
      fetchedFrom - the name of the remote configuration from which fetch was tried, cannot be null
      rebaseResult - rebase result, can be null
    • DtPullResult

      public DtPullResult(org.eclipse.jgit.transport.FetchResult fetchResult, String fetchedFrom, org.eclipse.jgit.api.MergeResult mergeResult)
      Creates a new instance with the given parameters.
      Parameters:
      fetchResult - fetch result, can be null
      fetchedFrom - the name of the remote configuration from which fetch was tried, cannot be null
      mergeResult - merge result, can be null
  • Method Details

    • getFetchResult

      public org.eclipse.jgit.transport.FetchResult getFetchResult()
      Get fetch result
      Returns:
      the fetch result, or null
    • getMergeResult

      public org.eclipse.jgit.api.MergeResult getMergeResult()
      Get merge result
      Returns:
      the merge result, or null
    • getRebaseResult

      public org.eclipse.jgit.api.RebaseResult getRebaseResult()
      Get rebase result
      Returns:
      the rebase result, or null
    • getFetchedFrom

      public String getFetchedFrom()
      Get name of the remote configuration from which fetch was tried
      Returns:
      the name of the remote configuration from which fetch was tried, never null
    • isSuccessful

      public boolean isSuccessful()
      Whether the pull was successful
      Returns:
      whether the pull was successful
    • toString

      public String toString()
      Overrides:
      toString in class Object