Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compareCommits return empty #405

Open
XSDYS opened this issue Mar 6, 2024 · 0 comments
Open

compareCommits return empty #405

XSDYS opened this issue Mar 6, 2024 · 0 comments

Comments

@XSDYS
Copy link

XSDYS commented Mar 6, 2024

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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant