René's URL Explorer Experiment


Title: Duplicate files when doing `pre-commit run --all-files` during git conflict · Issue #3706 · pre-commit/pre-commit · GitHub

Open Graph Title: Duplicate files when doing `pre-commit run --all-files` during git conflict · Issue #3706 · pre-commit/pre-commit

X Title: Duplicate files when doing `pre-commit run --all-files` during git conflict · Issue #3706 · pre-commit/pre-commit

Description: search you tried in the issue tracker merge / conflict / duplicate describe your issue Hello, First of all, thank you for your work. The tool helps to organize development workflows a lot. Here is an issue I have encountered: I'm using p...

Open Graph Description: search you tried in the issue tracker merge / conflict / duplicate describe your issue Hello, First of all, thank you for your work. The tool helps to organize development workflows a lot. Here is ...

X Description: search you tried in the issue tracker merge / conflict / duplicate describe your issue Hello, First of all, thank you for your work. The tool helps to organize development workflows a lot. Here is ...

Opengraph URL: https://github.com/pre-commit/pre-commit/issues/3706

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Duplicate files when doing `pre-commit run --all-files` during git conflict","articleBody":"### search you tried in the issue tracker\n\nmerge / conflict / duplicate\n\n### describe your issue\n\nHello,\n\nFirst of all, thank you for your work. The tool helps to organize development workflows a lot. Here is an issue I have encountered:\n\nI'm using `pre-commit` manually to run lints and checks over my code during development workflow. In particular running it during rebases when conflicts arisen. I found `pre-commit` to duplicate file names if they are in conflicted state. Some tools misbehaves in case.\n\nHere is a minimal reproducible scenario using git stash conflict:\n\n```sh\n$ git init .\n$ touch README.md\n$ git add README.md \n$ git commit -am \"initial state\"\n[master (root-commit) 53eaf48] initial state\n 1 file changed, 0 insertions(+), 0 deletions(-)\n create mode 100644 README.md\n$ pre-commit run --all-files --verbose\necho.....................................................................Passed\n- hook id: echo\n- duration: 0s\n\nREADME.md\n\n$ echo 'right' > ./README.md \n$ git stash\nSaved working directory and index state WIP on master: 53eaf48 initial state\n$ echo 'left' > ./README.md \n$ git add README.md \n$ git stash pop\nAuto-merging README.md\nCONFLICT (content): Merge conflict in README.md\nRecorded preimage for 'README.md'\nOn branch master\nUnmerged paths:\n  (use \"git restore --staged \u003cfile>...\" to unstage)\n  (use \"git add \u003cfile>...\" to mark resolution)\n\tboth modified:   README.md\n\nUntracked files:\n  (use \"git add \u003cfile>...\" to include in what will be committed)\n\t.pre-commit-config.yaml\n\nno changes added to commit (use \"git add\" and/or \"git commit -a\")\nThe stash entry is kept in case you need it again.\n$ pre-commit run --all-files --verbose\necho.....................................................................Passed\n- hook id: echo\n- duration: 0s\n\nREADME.md README.md README.md\n```\n\nIt would be nice if `pre-commit` could de-duplicate file list prior to feeding it to tools being invoked. Workarounds are welcome.\n\n\n### pre-commit --version\n\npre-commit 4.6.0\n\n### .pre-commit-config.yaml\n\n```yaml\nrepos:\n  - repo: local\n    hooks:\n    - id: echo\n      name: echo\n      entry: echo\n      language: system\n```\n\n### ~/.cache/pre-commit/pre-commit.log (if present)\n\n-","author":{"url":"https://github.com/RomanValov","@type":"Person","name":"RomanValov"},"datePublished":"2026-06-08T13:11:28Z","url":"https://github.com/pre-commit/pre-commit/issues/3706"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:7e7a7533-0b58-355c-9d3c-baf758d7ed67
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8C6C:172B92:3439BFC:45946C9:6B01FE9B
html-safe-nonce97730849d28af74b8173c091a19bc3f567c2a8c3826611380925407570a93525
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QzZDOjE3MkI5MjozNDM5QkZDOjQ1OTQ2Qzk6NkIwMUZFOUIiLCJ2aXNpdG9yX2lkIjoiNjc3ODM1NDM4NDE2ODU0NjgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmaca88c4f9d09345a82d27c62b3b1d8b48aa4ba6a6b225b62497d6fa4f44083b94e
hovercard-subject-tagissue:4613167749
github-keyboard-shortcutsrepository,issues,commits,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/pre-commit/pre-commit/3706/issue_layout
twitter:imagehttps://opengraph.githubassets.com/cde05a83376e5f7a4e261fbceca1144b2b838e964be1951abf23569c9fce7ba1/pre-commit/pre-commit/issues/3706
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/cde05a83376e5f7a4e261fbceca1144b2b838e964be1951abf23569c9fce7ba1/pre-commit/pre-commit/issues/3706
og:image:altsearch you tried in the issue tracker merge / conflict / duplicate describe your issue Hello, First of all, thank you for your work. The tool helps to organize development workflows a lot. Here is ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameRomanValov
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git
octolytics-dimension-user_id6943086
octolytics-dimension-user_loginpre-commit
octolytics-dimension-repository_id17689377
octolytics-dimension-repository_nwopre-commit/pre-commit
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id17689377
octolytics-dimension-repository_network_root_nwopre-commit/pre-commit
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/issues/3706#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F3706
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F3706
Sign uphttps://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=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/issues/3706
Reloadhttps://github.com/pre-commit/pre-commit/issues/3706
Reloadhttps://github.com/pre-commit/pre-commit/issues/3706
pre-commithttps://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Codehttps://github.com/pre-commit/pre-commit
Issues17 (17)https://github.com/pre-commit/pre-commit/issues
Pull requests8 (8)https://github.com/pre-commit/pre-commit/pulls
Actionshttps://github.com/pre-commit/pre-commit/actions
Security and qualityhttps://github.com/pre-commit/pre-commit/security
Insightshttps://github.com/pre-commit/pre-commit/insights
https://github.com/pre-commit/pre-commit
New issuehttps://github.com/login?return_to=https://github.com/pre-commit/pre-commit/issues/3706
New issuehttps://github.com/login?return_to=https://github.com/pre-commit/pre-commit/issues/3706
#3727https://github.com/pre-commit/pre-commit/pull/3727
Duplicate files when doing pre-commit run --all-files during git conflicthttps://github.com/pre-commit/pre-commit/issues/3706#top
#3727https://github.com/pre-commit/pre-commit/pull/3727
https://github.com/RomanValov
RomanValovhttps://github.com/RomanValov
on Jun 8, 2026https://github.com/pre-commit/pre-commit/issues/3706#issue-4613167749
https://github.com/asottile
asottilehttps://github.com/asottile
on Jun 8, 2026https://github.com/pre-commit/pre-commit/issues/3706#issuecomment-4650468610
https://github.com/RomanValov
RomanValovhttps://github.com/RomanValov
on Jun 8, 2026https://github.com/pre-commit/pre-commit/issues/3706#issuecomment-4650767832
https://github.com/asottile
asottilehttps://github.com/asottile
on Jun 8, 2026https://github.com/pre-commit/pre-commit/issues/3706#issuecomment-4650830658
https://github.com/RomanValov
RomanValovhttps://github.com/RomanValov
on Jun 8, 2026https://github.com/pre-commit/pre-commit/issues/3706#issuecomment-4651062640
https://github.com/beanscg
beanscghttps://github.com/beanscg
on Jun 9, 2026https://github.com/pre-commit/pre-commit/issues/3706#issuecomment-4662158526
asottilehttps://github.com/asottile
completedhttps://github.com/pre-commit/pre-commit/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#3727https://github.com/pre-commit/pre-commit/pull/3727
on Jul 21, 2026https://github.com/pre-commit/pre-commit/issues/3706#event-28291952017
rlichtenwalterhttps://github.com/rlichtenwalter
on Oct 16, 2026https://github.com/pre-commit/pre-commit/issues/3706#event-33463406603
chore: Update pre-commit hookshttps://github.com/rlichtenwalter/kdtree/commit/177e0e7d3e38d68e800e389914d518db6a0c4621
177e0e7https://github.com/rlichtenwalter/kdtree/commit/177e0e7d3e38d68e800e389914d518db6a0c4621
chore: Update pre-commit hookshttps://github.com/rlichtenwalter/popc/commit/9b3e95aef674c1f585ee0d15f7de12de9b4dc054
9b3e95ahttps://github.com/rlichtenwalter/popc/commit/9b3e95aef674c1f585ee0d15f7de12de9b4dc054
chore: Update pre-commit hookshttps://github.com/rlichtenwalter/mRMR/commit/7502f4735efb67e370f7f17cd503c48f6884b513
7502f47https://github.com/rlichtenwalter/mRMR/commit/7502f4735efb67e370f7f17cd503c48f6884b513
chore: Update pre-commit hookshttps://github.com/rlichtenwalter/vcp/commit/134b5b87ccf90531bb983a5fcb762ae0674f2d2a
134b5b8https://github.com/rlichtenwalter/vcp/commit/134b5b87ccf90531bb983a5fcb762ae0674f2d2a
Sign up for freehttps://github.com/signup?return_to=https://github.com/pre-commit/pre-commit/issues/3706
Sign in to commenthttps://github.com/login?return_to=https://github.com/pre-commit/pre-commit/issues/3706
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.