René's URL Explorer Experiment


Title: Support the post-rewrite hook type · Issue #2035 · pre-commit/pre-commit · GitHub

Open Graph Title: Support the post-rewrite hook type · Issue #2035 · pre-commit/pre-commit

X Title: Support the post-rewrite hook type · Issue #2035 · pre-commit/pre-commit

Description: It would be useful to me for pre-commit to support the post-rewrite hook: https://git-scm.com/docs/githooks post-rewrite This hook is invoked by commands that rewrite commits (git-commit[1] when called with --amend and git-rebase[1]; how...

Open Graph Description: It would be useful to me for pre-commit to support the post-rewrite hook: https://git-scm.com/docs/githooks post-rewrite This hook is invoked by commands that rewrite commits (git-commit[1] when ca...

X Description: It would be useful to me for pre-commit to support the post-rewrite hook: https://git-scm.com/docs/githooks post-rewrite This hook is invoked by commands that rewrite commits (git-commit[1] when ca...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support the post-rewrite hook type","articleBody":"It would be useful to me for pre-commit to support the `post-rewrite` hook:\r\n\r\nhttps://git-scm.com/docs/githooks\r\n\r\n\u003e post-rewrite\r\nThis hook is invoked by commands that rewrite commits (git-commit[1] when called with --amend and git-rebase[1]; however, full-history (re)writing tools like git-fast-import[1] or git-filter-repo typically do not call it!). Its first argument denotes the command it was invoked by: currently one of amend or rebase. Further command-dependent arguments may be passed in the future.\r\n\r\nMy use-case is automatically running `poetry install` for a project when merging, rebasing, or checking out a different branch.  Most of this is possible with the `post-checkout` and `post-merge` hooks, but when rebasing a branch the `post-merge` hook is run before the rebasing applies changes of my branch.\r\n\r\nFor example:\r\n\r\n```\r\n $ git pull origin main\r\nremote: Enumerating objects: 11, done.\r\nremote: Counting objects: 100% (11/11), done.\r\nremote: Compressing objects: 100% (7/7), done.\r\nremote: Total 11 (delta 4), reused 11 (delta 4), pack-reused 0\r\nUnpacking objects: 100% (11/11), 31.67 KiB | 5.28 MiB/s, done.\r\nFrom REDACTED\r\n * branch            main       -\u003e FETCH_HEAD\r\n   9a12988..36da943  main       -\u003e origin/main\r\nFirst, rewinding head to replay your work on top of it...\r\n\r\n###\r\n### The pre-commit hook runs here\r\n###\r\n\r\nInstall dependencies.....................................................Passed\r\n- hook id: poetry install\r\n- duration: 2.83s\r\nInstalling dependencies from lock file\r\nPackage operations: 0 installs, 2 updates, 0 removals\r\n  • Updating pytest (6.2.4 -\u003e 6.2.5)\r\n  • Updating pre-commit (2.14.0 -\u003e 2.14.1)\r\nInstalling the current project: REDACTED (0.0.1)\r\nInstall pre-commit hooks.................................................Passed\r\n- hook id: pre-commit install\r\n- duration: 0.45s\r\nApplying: REDACTED\r\nApplying: REDACTED\r\n\r\n###\r\n### I would like the pre-commit hook to run here\r\n###\r\n```","author":{"url":"https://github.com/uSpike","@type":"Person","name":"uSpike"},"datePublished":"2021-09-01T17:56:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/2035/pre-commit/issues/2035"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0310cf60-7ac8-0b0f-467d-3cdc757f92f8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE59A:3467D9:65437C:8AB4BC:6A55A32A
html-safe-nonce2ee8241dfc437c5ef4b3531f428670a1a570c997182088d508b03c7f671dc299
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNTlBOjM0NjdEOTo2NTQzN0M6OEFCNEJDOjZBNTVBMzJBIiwidmlzaXRvcl9pZCI6IjI0NTgyOTE5Njg5MzExMTE3MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3283e244246464359fdb74f9365a09da3ce406b68e1bf1a82b9e213783bd8f0d
hovercard-subject-tagissue:985434505
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/2035/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a3d7a93f838e632a4c68ea9c9e112f6c67c4627a5d93374f98c14c8a50244227/pre-commit/pre-commit/issues/2035
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a3d7a93f838e632a4c68ea9c9e112f6c67c4627a5d93374f98c14c8a50244227/pre-commit/pre-commit/issues/2035
og:image:altIt would be useful to me for pre-commit to support the post-rewrite hook: https://git-scm.com/docs/githooks post-rewrite This hook is invoked by commands that rewrite commits (git-commit[1] when ca...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameuSpike
hostnamegithub.com
expected-hostnamegithub.com
Noneb5665c84831ed9ac4fb79519c16c9c5580ba8092fb8bb6e3e72972ec7197348e
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
release653fccf1e27344851c0d3de3fa6faa526197f072
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/pre-commit/pre-commit/issues/2035#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpre-commit%2Fpre-commit%2Fissues%2F2035
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/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/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/enterprise/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%2Fpre-commit%2Fpre-commit%2Fissues%2F2035
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=pre-commit%2Fpre-commit
Reloadhttps://github.com/pre-commit/pre-commit/issues/2035
Reloadhttps://github.com/pre-commit/pre-commit/issues/2035
Reloadhttps://github.com/pre-commit/pre-commit/issues/2035
Please reload this pagehttps://github.com/pre-commit/pre-commit/issues/2035
pre-commit https://github.com/pre-commit
pre-commithttps://github.com/pre-commit/pre-commit
Please reload this pagehttps://github.com/pre-commit/pre-commit/issues/2035
Notifications https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Fork 985 https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Star 15.4k https://github.com/login?return_to=%2Fpre-commit%2Fpre-commit
Code https://github.com/pre-commit/pre-commit
Issues 22 https://github.com/pre-commit/pre-commit/issues
Pull requests 13 https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality 0 https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
Code https://github.com/pre-commit/pre-commit
Issues https://github.com/pre-commit/pre-commit/issues
Pull requests https://github.com/pre-commit/pre-commit/pulls
Actions https://github.com/pre-commit/pre-commit/actions
Security and quality https://github.com/pre-commit/pre-commit/security
Insights https://github.com/pre-commit/pre-commit/pulse
#2036https://github.com/pre-commit/pre-commit/pull/2036
Support the post-rewrite hook typehttps://github.com/pre-commit/pre-commit/issues/2035#top
#2036https://github.com/pre-commit/pre-commit/pull/2036
featurehttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22feature%22
good-first-issuehttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22good-first-issue%22
https://github.com/uSpike
uSpikehttps://github.com/uSpike
on Sep 1, 2021https://github.com/pre-commit/pre-commit/issues/2035#issue-985434505
https://git-scm.com/docs/githookshttps://git-scm.com/docs/githooks
featurehttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22feature%22
good-first-issuehttps://github.com/pre-commit/pre-commit/issues?q=state%3Aopen%20label%3A%22good-first-issue%22
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.