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: 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":"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:d1b02f56-ef6a-6e22-8734-63f360b55f76 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A77C:34286F:B9D493:F478D3:69763280 |
| html-safe-nonce | 7ba9f667a1b1594841323d131ca178119583911c398b0675ded7b96b045a50d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNzdDOjM0Mjg2RjpCOUQ0OTM6RjQ3OEQzOjY5NzYzMjgwIiwidmlzaXRvcl9pZCI6IjE0NjkzMDYyNjA3MzY1ODYzNjgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 8fee674b8d2415223a9a20a208600a6c76b1fb59a0d043eacfbfdb49b62e79b9 |
| 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 | c6814b4cc7afd45cd6e64525d0cff0e76dd802f315a5b0e55a7abda1d1d070d0 |
| 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 | 4ea235bfed58ef16c8a5642b3ac64b74f10c9f52 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width