René's URL Explorer Experiment


Title: Support for fuzzy patches · Issue #112 · java-diff-utils/java-diff-utils · GitHub

Open Graph Title: Support for fuzzy patches · Issue #112 · java-diff-utils/java-diff-utils

X Title: Support for fuzzy patches · Issue #112 · java-diff-utils/java-diff-utils

Description: When generating a unified diff with context, I would like to be able to do a fuzzy apply of that patch. Does your library support this? For example, take the following unified diff with context 3: --- original +++ modified @@ -2,6 +2,9 @...

Open Graph Description: When generating a unified diff with context, I would like to be able to do a fuzzy apply of that patch. Does your library support this? For example, take the following unified diff with context 3: ...

X Description: When generating a unified diff with context, I would like to be able to do a fuzzy apply of that patch. Does your library support this? For example, take the following unified diff with context 3: ...

Opengraph URL: https://github.com/java-diff-utils/java-diff-utils/issues/112

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support for fuzzy patches","articleBody":"When generating a unified diff with context, I would like to be able to do a fuzzy apply of that patch. Does your library support this?\r\n\r\nFor example, take the following unified diff with context 3:\r\n\r\n```\r\n--- original\r\n+++ modified\r\n@@ -2,6 +2,9 @@\r\n 2\r\n 3\r\n 4\r\n+a\r\n+b\r\n+c\r\n 5\r\n 6\r\n 7\r\n```\r\n\r\nAnd my file looks like the following (exactly the original but with three lines added to the top):\r\n\r\n```\r\nx\r\ny\r\nz\r\n1\r\n2\r\n3\r\n4\r\n5\r\n6\r\n7\r\n8\r\n```\r\n\r\nUsing the linux `patch` tool I am still able to apply this patch:\r\n\r\n```\r\n$ patch -o - neworig udiff.patch\r\npatching file - (read from neworig)\r\nHunk #1 succeeded at 5 with fuzz 1 (offset 3 lines).\r\n```\r\n\r\nWhen using `DiffUtils.patch` of your library I get an error (because the line numbers no longer match):\r\n\r\n```\r\nIncorrect Chunk: the chunk content doesn't match the target\r\n```\r\n\r\nMaybe there is a configuration option to enable fuzzy patching?","author":{"url":"https://github.com/dpoetzsch","@type":"Person","name":"dpoetzsch"},"datePublished":"2021-01-12T11:14:18.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/112/java-diff-utils/issues/112"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:13a9e795-838f-20d1-c8d2-891aa827ad12
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3F0:2A2892:1F2989D:2BE7FF7:69690A43
html-safe-nonceab3b4208f3c0f2968afcd0ddb6534372c9912af36bd79a57926699182534f55e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0YwOjJBMjg5MjoxRjI5ODlEOjJCRTdGRjc6Njk2OTBBNDMiLCJ2aXNpdG9yX2lkIjoiNjM5NTYxOTAzMDM5NDgwMDcwNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac726c5f69a9e2a03c5445b122d7f8523a2f6694a9b237345977a388d6a298d704
hovercard-subject-tagissue:784143255
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/java-diff-utils/java-diff-utils/112/issue_layout
twitter:imagehttps://opengraph.githubassets.com/2df84dad071e2074f5d431b7fdc448607d64c2763297200344a2bb4aee1d540a/java-diff-utils/java-diff-utils/issues/112
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/2df84dad071e2074f5d431b7fdc448607d64c2763297200344a2bb4aee1d540a/java-diff-utils/java-diff-utils/issues/112
og:image:altWhen generating a unified diff with context, I would like to be able to do a fuzzy apply of that patch. Does your library support this? For example, take the following unified diff with context 3: ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedpoetzsch
hostnamegithub.com
expected-hostnamegithub.com
Nonee6156bd4ef9f2dc8dadf4c49a8f7ed8532186388cef72eda3ccb9f0ab3b8cfca
turbo-cache-controlno-preview
go-importgithub.com/java-diff-utils/java-diff-utils git https://github.com/java-diff-utils/java-diff-utils.git
octolytics-dimension-user_id40540835
octolytics-dimension-user_loginjava-diff-utils
octolytics-dimension-repository_id86663812
octolytics-dimension-repository_nwojava-diff-utils/java-diff-utils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id86663812
octolytics-dimension-repository_network_root_nwojava-diff-utils/java-diff-utils
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseee2210c3e58153aae53400c942f8a7b4bbb43ec4
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/java-diff-utils/java-diff-utils/issues/112#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%2Fissues%2F112
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjava-diff-utils%2Fjava-diff-utils%2Fissues%2F112
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=java-diff-utils%2Fjava-diff-utils
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/112
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/112
Reloadhttps://github.com/java-diff-utils/java-diff-utils/issues/112
java-diff-utils https://github.com/java-diff-utils
java-diff-utilshttps://github.com/java-diff-utils/java-diff-utils
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/112
Notifications https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Fork 215 https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Star 1.5k https://github.com/login?return_to=%2Fjava-diff-utils%2Fjava-diff-utils
Code https://github.com/java-diff-utils/java-diff-utils
Issues 1 https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests 1 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 0 https://github.com/java-diff-utils/java-diff-utils/projects
Wiki https://github.com/java-diff-utils/java-diff-utils/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/java-diff-utils/java-diff-utils/security
Please reload this pagehttps://github.com/java-diff-utils/java-diff-utils/issues/112
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
Code https://github.com/java-diff-utils/java-diff-utils
Issues https://github.com/java-diff-utils/java-diff-utils/issues
Pull requests 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 https://github.com/java-diff-utils/java-diff-utils/security
Insights https://github.com/java-diff-utils/java-diff-utils/pulse
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/112
New issuehttps://github.com/login?return_to=https://github.com/java-diff-utils/java-diff-utils/issues/112
#125https://github.com/java-diff-utils/java-diff-utils/pull/125
Support for fuzzy patcheshttps://github.com/java-diff-utils/java-diff-utils/issues/112#top
#125https://github.com/java-diff-utils/java-diff-utils/pull/125
https://github.com/dpoetzsch
https://github.com/dpoetzsch
dpoetzschhttps://github.com/dpoetzsch
on Jan 12, 2021https://github.com/java-diff-utils/java-diff-utils/issues/112#issue-784143255
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.