Class ApplyCommand.Result

  • Enclosing class:
    ApplyCommand

    public static class ApplyCommand.Result
    extends java.lang.Object
    A wrapper for returning both the applied tree ID and the applied files list, as well as file specific errors.
    Since:
    6.3
    • Constructor Detail

      • Result

        public Result()
    • 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)