René's URL Explorer Experiment


Title: "Old" filename in patch files generated for testing does not exist and can cause failures · Issue #223 · uutils/diffutils · GitHub

Open Graph Title: "Old" filename in patch files generated for testing does not exist and can cause failures · Issue #223 · uutils/diffutils

X Title: "Old" filename in patch files generated for testing does not exist and can cause failures · Issue #223 · uutils/diffutils

Description: Most patch files generated for testing start like this: --- a/alef 2026-05-05 17:02:25.388687288 -0400 +++ target/unified-diff//alef 2026-05-05 17:02:25.388687288 -0400 ... Note patch does not use TWO filenames; it uses only one name bec...

Open Graph Description: Most patch files generated for testing start like this: --- a/alef 2026-05-05 17:02:25.388687288 -0400 +++ target/unified-diff//alef 2026-05-05 17:02:25.388687288 -0400 ... Note patch does not use ...

X Description: Most patch files generated for testing start like this: --- a/alef 2026-05-05 17:02:25.388687288 -0400 +++ target/unified-diff//alef 2026-05-05 17:02:25.388687288 -0400 ... Note patch does not use ...

Opengraph URL: https://github.com/uutils/diffutils/issues/223

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"\"Old\" filename in patch files generated for testing does not exist and can cause failures","articleBody":"Most patch files generated for testing start like this:\n\n```diff\n--- a/alef\t2026-05-05 17:02:25.388687288 -0400\n+++ target/unified-diff//alef\t2026-05-05 17:02:25.388687288 -0400\n...\n```\n\nNote `patch` does not use TWO  filenames; it uses only one name because it patches files \"in place\". But `patch` input == `diff` output and it makes sense for `diff` output to have \"old\" _and_ \"new\" filenames.\n\n`a/alef` does not normally not exist and tests normally pass because GNU patch silently falls back on the \"new\" filename. Except when `a/alef` exists, and then the corresponding test(s) to fail.\n\nhttps://www.gnu.org/software/diffutils/manual/html_node/Multiple-Patches.html documents GNU precedence and that the \"old\" file name has precedence over the \"new\" filename.\n\nTrivial reproduction:\n\n```\ncd diffutils\nmkdir a\ntouch a/alef  a/alefn  a/alef_  a/alefx  a/alefr  a/fuzz.file\ncargo test\n\n\n---- context_diff::tests::test_permutations stdout ----\n\nthread 'context_diff::tests::test_permutations' (98977) panicked at src/context_diff.rs:458:33:\nOutput { status: ExitStatus(unix_wait_status(256)), stdout: \"patching file a/alef\\nHunk #1 FAILED at 1.\\n1 out of 1 hunk FAILED -- saving rejects to file a/alef.rej\\n\", stderr: \"\" }\n```\n\nI hit this problem because some other (and unfortunately unknown) test issue left bogus `a/alef*` file(s) behind in my workspace. I didn't bother cleaning them up because I assumed some test would keep recreating them - and that cost me a lot of time.\n\n","author":{"url":"https://github.com/marc-hb","@type":"Person","name":"marc-hb"},"datePublished":"2026-05-05T21:28:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/223/diffutils/issues/223"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:6c6a1422-c41b-2c10-7a87-e4f1fbead61d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE010:391A54:83F167:B4DB58:6A4DB666
html-safe-nonce34ef89b54fad150dbcc4e1021b1681c193f8497f77419592e2f327bd16ae3a6c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDEwOjM5MUE1NDo4M0YxNjc6QjREQjU4OjZBNERCNjY2IiwidmlzaXRvcl9pZCI6IjE3NzExMjYxMDY3MDA0OTQ0MzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac4a9433cef53dd417389b6cf289e20d054fae65dfcff9505cc0fe9695ff36652e
hovercard-subject-tagissue:4387216254
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/uutils/diffutils/223/issue_layout
twitter:imagehttps://opengraph.githubassets.com/282779d0c7f77d5562776c894c6de0644c235a18d9ee4c49779f381ddc507ab6/uutils/diffutils/issues/223
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/282779d0c7f77d5562776c894c6de0644c235a18d9ee4c49779f381ddc507ab6/uutils/diffutils/issues/223
og:image:altMost patch files generated for testing start like this: --- a/alef 2026-05-05 17:02:25.388687288 -0400 +++ target/unified-diff//alef 2026-05-05 17:02:25.388687288 -0400 ... Note patch does not use ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemarc-hb
hostnamegithub.com
expected-hostnamegithub.com
None06b8a6144231bf3a234f1c2e9993861e07ce98a905912b114aa386c2d7e84b33
turbo-cache-controlno-preview
go-importgithub.com/uutils/diffutils git https://github.com/uutils/diffutils.git
octolytics-dimension-user_id5148717
octolytics-dimension-user_loginuutils
octolytics-dimension-repository_id341787720
octolytics-dimension-repository_nwouutils/diffutils
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id341787720
octolytics-dimension-repository_network_root_nwouutils/diffutils
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
release32f7b614aca06e6bbd89842b1370df1328264f68
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/uutils/diffutils/issues/223#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fuutils%2Fdiffutils%2Fissues%2F223
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
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
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
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%2Fuutils%2Fdiffutils%2Fissues%2F223
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=uutils%2Fdiffutils
Reloadhttps://github.com/uutils/diffutils/issues/223
Reloadhttps://github.com/uutils/diffutils/issues/223
Reloadhttps://github.com/uutils/diffutils/issues/223
Please reload this pagehttps://github.com/uutils/diffutils/issues/223
uutils https://github.com/uutils
diffutilshttps://github.com/uutils/diffutils
Notifications https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Fork 35 https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Star 270 https://github.com/login?return_to=%2Fuutils%2Fdiffutils
Code https://github.com/uutils/diffutils
Issues 20 https://github.com/uutils/diffutils/issues
Pull requests 12 https://github.com/uutils/diffutils/pulls
Actions https://github.com/uutils/diffutils/actions
Projects https://github.com/uutils/diffutils/projects
Security and quality 0 https://github.com/uutils/diffutils/security
Insights https://github.com/uutils/diffutils/pulse
Code https://github.com/uutils/diffutils
Issues https://github.com/uutils/diffutils/issues
Pull requests https://github.com/uutils/diffutils/pulls
Actions https://github.com/uutils/diffutils/actions
Projects https://github.com/uutils/diffutils/projects
Security and quality https://github.com/uutils/diffutils/security
Insights https://github.com/uutils/diffutils/pulse
#224https://github.com/uutils/diffutils/pull/224
"Old" filename in patch files generated for testing does not exist and can cause failureshttps://github.com/uutils/diffutils/issues/223#top
#224https://github.com/uutils/diffutils/pull/224
https://github.com/marc-hb
marc-hbhttps://github.com/marc-hb
on May 5, 2026https://github.com/uutils/diffutils/issues/223#issue-4387216254
https://www.gnu.org/software/diffutils/manual/html_node/Multiple-Patches.htmlhttps://www.gnu.org/software/diffutils/manual/html_node/Multiple-Patches.html
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.