Title: Improve pre-push file list when merges are involved · Issue #860 · pre-commit/pre-commit · GitHub
Open Graph Title: Improve pre-push file list when merges are involved · Issue #860 · pre-commit/pre-commit
X Title: Improve pre-push file list when merges are involved · Issue #860 · pre-commit/pre-commit
Description: If I have a feature branch based on some old commit in develop or master, and I merge in develop or master, the pre-push hooks will run over all the merge commit files. Would it be possible to add a setting to provide a known "good" bran...
Open Graph Description: If I have a feature branch based on some old commit in develop or master, and I merge in develop or master, the pre-push hooks will run over all the merge commit files. Would it be possible to add ...
X Description: If I have a feature branch based on some old commit in develop or master, and I merge in develop or master, the pre-push hooks will run over all the merge commit files. Would it be possible to add ...
Opengraph URL: https://github.com/pre-commit/pre-commit/issues/860
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve pre-push file list when merges are involved","articleBody":"If I have a feature branch based on some old commit in `develop` or `master`, and I merge in `develop` or `master`, the pre-push hooks will run over all the merge commit files. Would it be possible to add a setting to provide a known \"good\" branch whose changes can be ignored? This is potentially useful as you gradually roll out a new check on a codebase, or if only some people have hooks installed.\r\n\r\nA current workaround for this is by manually doing something like `git diff $(git merge-base HEAD develop) --name-only [--diff-filter=ACMR?]` in custom hooks, but I'd like to do this for other hooks I haven't written. The effect of this setting would just be to shrink the list of files provided to the hook, so their code wouldn't change.\r\n\r\nExample repo: https://github.com/prem-nuro/precommit-issue-860","author":{"url":"https://github.com/prem-nuro","@type":"Person","name":"prem-nuro"},"datePublished":"2018-11-06T15:27:13.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":29},"url":"https://github.com/860/pre-commit/issues/860"}
| 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:83407252-1aed-64a6-b1e3-3c191c69c0ee |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E2F2:18CA17:1D74AFF:28BCC33:6971F7C4 |
| html-safe-nonce | 31cc3f6ee902dd01b959b7c1ec345174c1a15d2ad5892909ef2b420663edd21a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMkYyOjE4Q0ExNzoxRDc0QUZGOjI4QkNDMzM6Njk3MUY3QzQiLCJ2aXNpdG9yX2lkIjoiMzc5ODIxMTQ2MTkxODA5NTMwMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 315bcea7307bc44f4508ecc8fd4cf3c59190599f64a0989d216440428e02cea6 |
| hovercard-subject-tag | issue:377897969 |
| github-keyboard-shortcuts | repository,issues,commits,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/pre-commit/pre-commit/860/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0831416cbd783da2897e6e1eebad9d423a64710d4f896a92a4b362d87f9ab95b/pre-commit/pre-commit/issues/860 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0831416cbd783da2897e6e1eebad9d423a64710d4f896a92a4b362d87f9ab95b/pre-commit/pre-commit/issues/860 |
| og:image:alt | If I have a feature branch based on some old commit in develop or master, and I merge in develop or master, the pre-push hooks will run over all the merge commit files. Would it be possible to add ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | prem-nuro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5d01a3551afdd1a0e12e78acaf3ba43a9a1f7dcb518695d6ed59db76a9290f13 |
| turbo-cache-control | no-preview |
| go-import | github.com/pre-commit/pre-commit git https://github.com/pre-commit/pre-commit.git |
| octolytics-dimension-user_id | 6943086 |
| octolytics-dimension-user_login | pre-commit |
| octolytics-dimension-repository_id | 17689377 |
| octolytics-dimension-repository_nwo | pre-commit/pre-commit |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 17689377 |
| octolytics-dimension-repository_network_root_nwo | pre-commit/pre-commit |
| 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 | 062b05dcdf64ee7a3dad7acabb746494ae0982cc |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width