Package org.eclipse.jgit.api
Class CheckoutResult
- java.lang.Object
-
- org.eclipse.jgit.api.CheckoutResult
-
public class CheckoutResult extends Object
Encapsulates the result of aCheckoutCommand
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CheckoutResult.Status
The status
-
Field Summary
Fields Modifier and Type Field Description static CheckoutResult
ERROR_RESULT
TheCheckoutResult.Status.ERROR
result;static CheckoutResult
NOT_TRIED_RESULT
TheCheckoutResult.Status.NOT_TRIED
result;
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getConflictList()
Get list of file that created a checkout conflictList<String>
getModifiedList()
Get the list of files that where modified during checkoutList<String>
getRemovedList()
Get the list of files that where removed during checkoutCheckoutResult.Status
getStatus()
Get statusList<String>
getUndeletedList()
Get the list of files that could not be deleted during checkout
-
-
-
Field Detail
-
ERROR_RESULT
public static final CheckoutResult ERROR_RESULT
TheCheckoutResult.Status.ERROR
result;
-
NOT_TRIED_RESULT
public static final CheckoutResult NOT_TRIED_RESULT
TheCheckoutResult.Status.NOT_TRIED
result;
-
-
Method Detail
-
getStatus
public CheckoutResult.Status getStatus()
Get status- Returns:
- the status
-
getConflictList
public List<String> getConflictList()
Get list of file that created a checkout conflict- Returns:
- the list of files that created a checkout conflict, or an empty
list if
getStatus()
is notCheckoutResult.Status.CONFLICTS
;
-
getUndeletedList
public List<String> getUndeletedList()
Get the list of files that could not be deleted during checkout- Returns:
- the list of files that could not be deleted during checkout, or
an empty list if
getStatus()
is notCheckoutResult.Status.NONDELETED
;
-
getModifiedList
public List<String> getModifiedList()
Get the list of files that where modified during checkout- Returns:
- the list of files that where modified during checkout, or an
empty list if
getStatus()
is notCheckoutResult.Status.OK
-
getRemovedList
public List<String> getRemovedList()
Get the list of files that where removed during checkout- Returns:
- the list of files that where removed during checkout, or an empty
list if
getStatus()
is notCheckoutResult.Status.OK
-
-