Class FileInfoJsonImpl

    • Method Detail

      • getFileInfoMap

        public Map<String,​FileInfo> getFileInfoMap​(Project.NameKey project,
                                                         org.eclipse.jgit.lib.ObjectId objectId,
                                                         int parent)
                                                  throws ResourceConflictException,
                                                         PatchListNotAvailableException
        Description copied from interface: FileInfoJson
        Computes the list of modified files for a given project and commit against its parent. For merge commits, callers can use 0, 1, 2, etc... to choose a specific parent. The first parent is 0. A value of -1 for parent can be passed to use the default base commit, which is the only parent for commits having only one parent, or the auto-merge otherwise.
        Specified by:
        getFileInfoMap in interface FileInfoJson
        Parameters:
        project - a project identifying a repository.
        objectId - a commit SHA-1 identifying a patchset commit.
        parent - 1-based integer identifying the parent number used for comparison. If zero, the only parent will be used or the auto-merge if newCommit is a merge commit.
        Returns:
        a mapping of the file paths to their related diff information.
        Throws:
        ResourceConflictException
        PatchListNotAvailableException