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
1015: Webrev can't handle changes with binary files #16
Conversation
|
Webrevs
|
index.html
Outdated
const line = lines[i]; | ||
if (line.startsWith("@@")) { | ||
if (srcLines.length > 0 || dstLines.length > 0) { | ||
if (patch != null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe do an early return instead? As in
if (patch === null) {
return hunks;
}
That way you don't have to re-indent the entire method
@erikj79 This change now passes all automated pre-integration checks. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been no new commits pushed to the
|
/integrate |
Please review this fix, which fixes handling of binary files in webrev diffs. We should not even attempt to show diffs for binary files.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/cr pull/16/head:pull/16
$ git checkout pull/16
Update a local copy of the PR:
$ git checkout pull/16
$ git pull https://git.openjdk.java.net/cr pull/16/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 16
View PR using the GUI difftool:
$ git pr show -t 16
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/cr/pull/16.diff