Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · dnaumenko/java-diff-utils · GitHub
Open Graph Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · dnaumenko/java-diff-utils
X Title: Parsing add-only parts of unified diffs generated by "diff -U 0 ..." fails · Issue #20 · dnaumenko/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/dnaumenko/java-diff-utils/issues/20
X: @github
Domain: patch-diff.githubusercontent.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":"2016-02-28T10:19:39.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:0fde2a49-98ce-1c6f-9169-a201c4336193 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC40:15F1C5:26B114:31E5FC:699066BB |
| html-safe-nonce | ab5e74cd4a74a64c57a1c417dbba203cc3b60aa48a02325159aa3a6854af5184 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzQwOjE1RjFDNToyNkIxMTQ6MzFFNUZDOjY5OTA2NkJCIiwidmlzaXRvcl9pZCI6IjEwOTQ4Nzc2MTc1MzI3MjQ5MjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 595529bc9bf8f24463e4c5f37ce7bffaf6c9e59c3a727ffa56a8e31b85e909e1 |
| hovercard-subject-tag | issue:137035710 |
| 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/dnaumenko/java-diff-utils/20/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2ab37f2e215e0e336c94a009c328ee43d12f53a333cb9f987466a38a122a8758/dnaumenko/java-diff-utils/issues/20 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2ab37f2e215e0e336c94a009c328ee43d12f53a333cb9f987466a38a122a8758/dnaumenko/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 | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/dnaumenko/java-diff-utils git https://github.com/dnaumenko/java-diff-utils.git |
| octolytics-dimension-user_id | 158093 |
| octolytics-dimension-user_login | dnaumenko |
| octolytics-dimension-repository_id | 52715583 |
| octolytics-dimension-repository_nwo | dnaumenko/java-diff-utils |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 52715583 |
| octolytics-dimension-repository_network_root_nwo | dnaumenko/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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width