Skip to content

compareCommits return empty #405

Description

@XSDYS
public GitlabCommitComparison compareCommits(Serializable projectId, String commitHash1, String commitHash2) throws IOException {
    return this.compareCommits(projectId, commitHash1, commitHash2, new Pagination());
}

Hello, I use this method to compare the diff of two commits, but I found that if the git page displays "This diff is collapsed. Click to expand it" the return will also be empty.

{
  "aMode": "0",
  "bMode": "100644",
  "deletedFile": false,
  "diff": "",
  "newFile": true,
  "newPath": "src/main/java/com/qunhe/instdeco/diy/rps/logic/videorender/VideoObjectEditLogic.java",
  "oldPath": "src/main/java/com/qunhe/instdeco/diy/rps/logic/videorender/VideoObjectEditLogic.java",
  "renamedFile": false
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions