| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:fc20ffc3-0893-f776-d4ec-1a17c06e998b |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | CE3C:2F9718:2D4BECA:3CC389F:6B01E38E |
| html-safe-nonce | aad4d79ed88d8061ef4f99e9c5e0c950085230eedef5770a5b276536ebedf239 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTNDOjJGOTcxODoyRDRCRUNBOjNDQzM4OUY6NkIwMUUzOEUiLCJ2aXNpdG9yX2lkIjoiOTA2OTUzMTI2MjIwNDYzMzk5OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c8b0e32752f43dbab0d20f1214424682a45f141fab7a197cbeb88a8b872f8d98 |
| hovercard-subject-tag | pull_request:5158009020 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| twitter:image | https://avatars.githubusercontent.com/u/89645338?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/89645338?s=400&v=4 |
| og:image:alt | Problem
UnifiedDiffUtils.generateUnifiedDiff treats any single-delta patch with a null original file name as a newly created file. The new-file flag reaches processDeltas, which then hardcodes the ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/java-diff-utils/java-diff-utils git https://github.com/java-diff-utils/java-diff-utils.git |
| octolytics-dimension-user_id | 40540835 |
| octolytics-dimension-user_login | java-diff-utils |
| octolytics-dimension-repository_id | 86663812 |
| octolytics-dimension-repository_nwo | java-diff-utils/java-diff-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 86663812 |
| octolytics-dimension-repository_network_root_nwo | java-diff-utils/java-diff-utils |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/java-diff-utils/java-diff-utils/pull/241/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fpull%2F241%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fpull%2F241%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=java-diff-utils%2Fjava-diff-utils |
| Reload | https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| Reload | https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| Reload | https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| java-diff-utils | https://github.com/java-diff-utils |
| java-diff-utils | https://github.com/java-diff-utils/java-diff-utils |
| Code | https://github.com/java-diff-utils/java-diff-utils |
| Issues2 (2) | https://github.com/java-diff-utils/java-diff-utils/issues |
| Pull requests2 (2) | https://github.com/java-diff-utils/java-diff-utils/pulls |
| Discussions | https://github.com/java-diff-utils/java-diff-utils/discussions |
| Actions | https://github.com/java-diff-utils/java-diff-utils/actions |
| Projects | https://github.com/java-diff-utils/java-diff-utils/projects |
| Wiki | https://github.com/java-diff-utils/java-diff-utils/wiki |
| Security and quality | https://github.com/java-diff-utils/java-diff-utils/security |
| Insights | https://github.com/java-diff-utils/java-diff-utils/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2Fnew%2Fchoose |
| simpleqt | https://github.com/simpleqt |
| java-diff-utils:master | https://github.com/java-diff-utils/java-diff-utils/tree/master |
| simpleqt:fix/null-original-name-hunk-range | https://github.com/simpleqt/java-diff-utils/tree/fix/null-original-name-hunk-range |
|
Conversation
1
| https://github.com/java-diff-utils/java-diff-utils/pull/241 |
|
Commits
1
| https://github.com/java-diff-utils/java-diff-utils/pull/241/commits |
|
Checks
1
| https://github.com/java-diff-utils/java-diff-utils/pull/241/checks |
|
Files changed
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| Please reload this page | https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
|
Number single-delta hunks correctly when the original file name is null
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#top |
|
Show all changes
1 commit
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
|
dad228e
Number single-delta hunks correctly when the original file name is null
simpleqt Nov 4, 2026
| https://github.com/java-diff-utils/java-diff-utils/pull/241/commits/dad228e7c74564c5070abcdc3c53a9dbf3698cb4 |
|
Clear filters
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| Please reload this page | https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
| Please reload this page | https://github.com/java-diff-utils/java-diff-utils/pull/241/files |
|
UnifiedDiffUtils.java
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-154afc7171f33b5cd1b431b5b88dc952bbb6da8c763201f877d7c66a28de52ab |
|
GenerateUnifiedDiffTest.java
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-f5c3e4ea3165c22fa81255e7f4c7f38b065de67df839f27cb78a224bf0eff8ee |
| java-diff-utils/src/main/java/com/github/difflib/UnifiedDiffUtils.java | https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-154afc7171f33b5cd1b431b5b88dc952bbb6da8c763201f877d7c66a28de52ab |
|
View file
| https://github.com/java-diff-utils/java-diff-utils/blob/dad228e7c74564c5070abcdc3c53a9dbf3698cb4/java-diff-utils/src/main/java/com/github/difflib/UnifiedDiffUtils.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/java-diff-utils/java-diff-utils/pull/241/{{ revealButtonHref }} |
|
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-154afc7171f33b5cd1b431b5b88dc952bbb6da8c763201f877d7c66a28de52ab |
|
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-154afc7171f33b5cd1b431b5b88dc952bbb6da8c763201f877d7c66a28de52ab |
| java-diff-utils/src/test/java/com/github/difflib/GenerateUnifiedDiffTest.java | https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-f5c3e4ea3165c22fa81255e7f4c7f38b065de67df839f27cb78a224bf0eff8ee |
|
View file
| https://github.com/java-diff-utils/java-diff-utils/blob/dad228e7c74564c5070abcdc3c53a9dbf3698cb4/java-diff-utils/src/test/java/com/github/difflib/GenerateUnifiedDiffTest.java |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/java-diff-utils/java-diff-utils/pull/241/{{ revealButtonHref }} |
|
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-f5c3e4ea3165c22fa81255e7f4c7f38b065de67df839f27cb78a224bf0eff8ee |
|
| https://github.com/java-diff-utils/java-diff-utils/pull/241/files#diff-f5c3e4ea3165c22fa81255e7f4c7f38b065de67df839f27cb78a224bf0eff8ee |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |