Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · is/java-diff-utils · GitHub
Open Graph Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · is/java-diff-utils
X Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · is/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/is/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 \u003e 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":"2015-05-19T16:21:49.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/20/java-diff-utils/issues/20"}
| 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:418eb228-bc73-c8bf-e7d6-bdb5747a8a1e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 843A:11BAEC:25F40D:34270E:697748D4 |
| html-safe-nonce | c6f7103a244c533be4caf65dff37e01aafc211ec063773126965a538443363f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDNBOjExQkFFQzoyNUY0MEQ6MzQyNzBFOjY5Nzc0OEQ0IiwidmlzaXRvcl9pZCI6Ijg5NjM1MjkwMDQwMDIyNjUzMDAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a7af999cac2995b7f0d33b868e94401bbf46f92a7f2d598ff347b05792292112 |
| hovercard-subject-tag | issue:78155754 |
| 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/is/java-diff-utils/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/aaa955dc64a8d2637d4f9e34854e82c5c85f8e1d1684640e71dbc81051a93d3b/is/java-diff-utils/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/aaa955dc64a8d2637d4f9e34854e82c5c85f8e1d1684640e71dbc81051a93d3b/is/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 | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/is/java-diff-utils git https://github.com/is/java-diff-utils.git |
| octolytics-dimension-user_id | 3188 |
| octolytics-dimension-user_login | is |
| octolytics-dimension-repository_id | 35894000 |
| octolytics-dimension-repository_nwo | is/java-diff-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35894000 |
| octolytics-dimension-repository_network_root_nwo | is/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 | d37e99eca9fba24ee37da98481d573461cc1ab7d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width