Title: Add `--no-textconv` to `git diff` calls by adamchainz · Pull Request #2743 · pre-commit/pre-commit · GitHub
Open Graph Title: Add `--no-textconv` to `git diff` calls by adamchainz · Pull Request #2743 · pre-commit/pre-commit
X Title: Add `--no-textconv` to `git diff` calls by adamchainz · Pull Request #2743 · pre-commit/pre-commit
Description: Fixes #2742. I fixed the one in run.py, fixing the bug. Ithen audited the other git diff calls to consider whether text conversion would be suitable there. Those using --name-only don't need it, since Git skips text conversion in that case. The diff in _run_hooks is for human consumption doesn't need it because it's for the human to read.
Open Graph Description: Fixes #2742. I fixed the one in run.py, fixing the bug. Ithen audited the other git diff calls to consider whether text conversion would be suitable there. Those using --name-only don't need it...
X Description: Fixes #2742. I fixed the one in run.py, fixing the bug. Ithen audited the other git diff calls to consider whether text conversion would be suitable there. Those using --name-only don't nee...
Opengraph URL: https://github.com/pre-commit/pre-commit/pull/2743
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:388da37c-2262-b400-6f29-494359a1dd8c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8680:37AC61:4639A0:612010:6A584A8F |
| html-safe-nonce | b0e1c1badc926d29d991ca4b03e4d703f40abe4bb59b5e0c1711cfaa002e86fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjgwOjM3QUM2MTo0NjM5QTA6NjEyMDEwOjZBNTg0QThGIiwidmlzaXRvcl9pZCI6Ijg2ODM1NjAyNjgwNDIwOTUyNDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3e7728205066d7476938f8e63adebc55c2952ab680cb9176d07edbf60830cf6d |
| hovercard-subject-tag | pull_request:1226389753 |
| github-keyboard-shortcuts | repository,commits,pull-request-list,pull-request-conversation,pull-request-files-changed,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/pre-commit/pre-commit/pull/2743/files |
| twitter:image | https://avatars.githubusercontent.com/u/857609?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/857609?s=400&v=4 |
| og:image:alt | Fixes #2742. I fixed the one in run.py, fixing the bug. Ithen audited the other git diff calls to consider whether text conversion would be suitable there. Those using --name-only don't need it... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| 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 full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width