org.netbeans.libs.git/1 1.1

org.netbeans.libs.git
Class GitRevertResult

java.lang.Object
  extended by org.netbeans.libs.git.GitRevertResult

public final class GitRevertResult
extends Object

Provides information about the result of reverting a commit.


Nested Class Summary
static class GitRevertResult.Status
          Result status of a commit revert.
 
Method Summary
 Collection<File> getConflicts()
          If the revert started but was unable to finish because of unresolved conflicts then the method returns a collection of such files in conflict.
 Collection<File> getFailures()
          When the commit revert fails because of local modifications then this method returns a collections of files causing the failure.
 GitRevisionInfo getNewHead()
           
 GitRevertResult.Status getStatus()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getStatus

public GitRevertResult.Status getStatus()
Returns:
result of the revert.

getNewHead

public GitRevisionInfo getNewHead()
Returns:
current HEAD commit after the successful revert or null if it failed.

getConflicts

public Collection<File> getConflicts()
If the revert started but was unable to finish because of unresolved conflicts then the method returns a collection of such files in conflict. To complete the commit revert you need to resolve the conflicts and commit the changes.

Returns:
files in conflict

getFailures

public Collection<File> getFailures()
When the commit revert fails because of local modifications then this method returns a collections of files causing the failure.

Returns:
files that cause the revert to fail.

org.netbeans.libs.git/1 1.1

Built on May 22 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.