Package org.eclipse.jgit.api
Class ApplyCommand.Result
- java.lang.Object
-
- org.eclipse.jgit.api.ApplyCommand.Result
-
- Enclosing class:
- ApplyCommand
public static class ApplyCommand.Result extends java.lang.ObjectA wrapper for returning both the applied tree ID and the applied files list, as well as file specific errors.- Since:
- 6.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classApplyCommand.Result.ErrorA wrapper for a patch applying error that affects a given file.
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<ApplyCommand.Result.Error>errorsprivate java.util.List<java.lang.String>pathsprivate ObjectIdtreeId
-
Constructor Summary
Constructors Constructor Description Result()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddError(java.lang.String msg, java.lang.String oldFileName, HunkHeader hh)java.util.List<ApplyCommand.Result.Error>getErrors()Get errorsjava.util.List<java.lang.String>getPaths()Get modified pathsObjectIdgetTreeId()Get tree ID
-
-
-
Field Detail
-
treeId
private ObjectId treeId
-
paths
private java.util.List<java.lang.String> paths
-
errors
private java.util.List<ApplyCommand.Result.Error> errors
-
-
Method Detail
-
getPaths
public java.util.List<java.lang.String> getPaths()
Get modified paths- Returns:
- List of modified paths.
-
getTreeId
public ObjectId getTreeId()
Get tree ID- Returns:
- The applied tree ID.
-
getErrors
public java.util.List<ApplyCommand.Result.Error> getErrors()
Get errors- Returns:
- Errors occurred while applying the patch.
- Since:
- 6.6
-
addError
private void addError(java.lang.String msg, java.lang.String oldFileName, @Nullable HunkHeader hh)
-
-