Package org.eclipse.jgit.api
Class CheckoutResult
java.lang.Object
org.eclipse.jgit.api.CheckoutResult
Encapsulates the result of a
CheckoutCommand
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CheckoutResult
TheCheckoutResult.Status.ERROR
result;private final CheckoutResult.Status
static final CheckoutResult
TheCheckoutResult.Status.NOT_TRIED
result; -
Constructor Summary
ConstructorsConstructorDescriptionCheckoutResult
(List<String> modified, List<String> removed) Create a new OK result with modified and removed files.CheckoutResult
(CheckoutResult.Status status, List<String> fileList) Create a new fail result.CheckoutResult
(CheckoutResult.Status status, List<String> fileList, List<String> modified, List<String> removed) Create a new fail result. -
Method Summary
Modifier and TypeMethodDescriptionGet list of file that created a checkout conflictGet the list of files that where modified during checkoutGet the list of files that where removed during checkoutGet statusGet the list of files that could not be deleted during checkout
-
Field Details
-
ERROR_RESULT
TheCheckoutResult.Status.ERROR
result; -
NOT_TRIED_RESULT
TheCheckoutResult.Status.NOT_TRIED
result; -
myStatus
-
conflictList
-
undeletedList
-
modifiedList
-
removedList
-
-
Constructor Details
-
CheckoutResult
CheckoutResult(CheckoutResult.Status status, List<String> fileList) Create a new fail result. If status isCheckoutResult.Status.CONFLICTS
,fileList
is a list of conflicting files, if status isCheckoutResult.Status.NONDELETED
,fileList
is a list of not deleted files. All other values ignorefileList
. To create a result forCheckoutResult.Status.OK
, seeCheckoutResult(List, List)
.- Parameters:
status
- the failure statusfileList
- the list of files to store, status has to be eitherCheckoutResult.Status.CONFLICTS
orCheckoutResult.Status.NONDELETED
.
-
CheckoutResult
CheckoutResult(CheckoutResult.Status status, List<String> fileList, List<String> modified, List<String> removed) Create a new fail result. If status isCheckoutResult.Status.CONFLICTS
,fileList
is a list of conflicting files, if status isCheckoutResult.Status.NONDELETED
,fileList
is a list of not deleted files. All other values ignorefileList
. To create a result forCheckoutResult.Status.OK
, seeCheckoutResult(List, List)
.- Parameters:
status
- the failure statusfileList
- the list of files to store, status has to be eitherCheckoutResult.Status.CONFLICTS
orCheckoutResult.Status.NONDELETED
.modified
- the modified filesremoved
- the removed files.
-
CheckoutResult
Create a new OK result with modified and removed files.- Parameters:
modified
- the modified filesremoved
- the removed files.
-
-
Method Details
-
getStatus
Get status- Returns:
- the status
-
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
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
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
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
-