Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · seanshou/java-diff-utils · GitHub
Open Graph Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · seanshou/java-diff-utils
X Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · seanshou/java-diff-utils
Description: What steps will reproduce the problem? 1. Create patch: diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt 2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java to diffutils/ 3. Run JUnit on EmptyConte...
Open Graph Description: What steps will reproduce the problem? 1. Create patch: diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt 2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java ...
X Description: What steps will reproduce the problem? 1. Create patch: diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt 2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.ja...
Opengraph URL: https://github.com/seanshou/java-diff-utils/issues/20
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Parsing add-only parts of unified diffs generated by \"diff -U 0 ...\" fails","articleBody":"```\nWhat steps will reproduce the problem?\n1. Create patch:\n diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt\n2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java to \ndiffutils/\n3. Run JUnit on EmptyContextUnifiedDiffTest\n\nWhat is the expected output? What do you see instead?\n\ntestUnifiedContextInsert shouldn't fail.\n\nWhat version of the product are you using? On what operating system?\ndiffutils-1.2.1.jar\ndiff (GNU diffutils) 3.0\nUbuntu 10.10\n\nI have included a patch to fix this issue.\n\n\n```\n\nOriginal issue reported on code.google.com by `jharj...@gmail.com` on 15 Jun 2011 at 8:40\n\nAttachments:\n- [uc_original.txt](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-20/comment-0/uc_original.txt)\n- [uc_insert_revised.txt](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-20/comment-0/uc_insert_revised.txt)\n- [uc_insert_patch.txt](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-20/comment-0/uc_insert_patch.txt)\n- [EmptyContextUnifiedDiffTest.java](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-20/comment-0/EmptyContextUnifiedDiffTest.java)\n- [DiffUtils.java.patch](https://storage.googleapis.com/google-code-attachments/java-diff-utils/issue-20/comment-0/DiffUtils.java.patch)\n","author":{"url":"https://github.com/GoogleCodeExporter","@type":"Person","name":"GoogleCodeExporter"},"datePublished":"2016-02-17T03:05:50Z","url":"https://github.com/seanshou/java-diff-utils/issues/20"}
| 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 | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:6cdf9e78-857d-404c-f3aa-b5254b7c366e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C1BA:10A7CF:8098CC:AA49EE:6AFBD0AD |
| html-safe-nonce | 5979b54005b61a57a47ff18068b8e8a8a8339e77a915c04447b64cd703de129e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMUJBOjEwQTdDRjo4MDk4Q0M6QUE0OUVFOjZBRkJEMEFEIiwidmlzaXRvcl9pZCI6IjMyMDEyNTcwNzEzMjQxNTYwNzciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 92d747724fdad4cb32e55b3169965cae0c3c10102cfb35b4f3199e04b08a34fc |
| hovercard-subject-tag | issue:134163733 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/seanshou/java-diff-utils/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c5499b663577a021ac9f24c02b533bd50ebe9c82817faf6b8101ceacc399cc05/seanshou/java-diff-utils/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c5499b663577a021ac9f24c02b533bd50ebe9c82817faf6b8101ceacc399cc05/seanshou/java-diff-utils/issues/20 |
| og:image:alt | What steps will reproduce the problem? 1. Create patch: diff -U 0 uc_original.txt uc_insert_revised.txt > uc_insert_patch.txt 2. Copy *.txt files to test/mocks and EmptyContextUnifiedDiffTest.java ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | GoogleCodeExporter |
| hostname | github.com |
| expected-hostname | github.com |
| None | 18742cb872ec73544356e60359266b67aafece70c4ce008042e06227924cdd07 |
| turbo-cache-control | no-preview |
| go-import | github.com/seanshou/java-diff-utils git https://github.com/seanshou/java-diff-utils.git |
| octolytics-dimension-user_id | 2314941 |
| octolytics-dimension-user_login | seanshou |
| octolytics-dimension-repository_id | 51889826 |
| octolytics-dimension-repository_nwo | seanshou/java-diff-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 51889826 |
| octolytics-dimension-repository_network_root_nwo | seanshou/java-diff-utils |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 820be804f18e1ef3940bd74a00d41d73d02e2b91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width