Title: Checkout typechange-only deltas by ethomson · Pull Request #4369 · libgit2/libgit2 · GitHub
Open Graph Title: Checkout typechange-only deltas by ethomson · Pull Request #4369 · libgit2/libgit2
X Title: Checkout typechange-only deltas by ethomson · Pull Request #4369 · libgit2/libgit2
Description: When performing a forced checkout, treat files as modified when the workdir or the index is identical except for the mode. This ensures that force checkout will update the mode to the target. Without this change, we examine the contents of the file on-disk and determine that it's identical to the tree we're checking out, and continue without making any changes. By including the filemode in the difference check, checkout will now make a file executable (or remove the executable bit) as appropriate to match the checkout target. We apply this check for regular files only: in the case where one of the items was a file and the other item was not, then this would be a typechange (not a file mode change) and would be handled by other codepaths.
Open Graph Description: When performing a forced checkout, treat files as modified when the workdir or the index is identical except for the mode. This ensures that force checkout will update the mode to the target. With...
X Description: When performing a forced checkout, treat files as modified when the workdir or the index is identical except for the mode. This ensures that force checkout will update the mode to the target. With...
Opengraph URL: https://github.com/libgit2/libgit2/pull/4369
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/commits/:range(.:format) |
| route-controller | pull_requests |
| route-action | commits |
| fetch-nonce | v2:bcaa6be1-62f5-6ffd-bee5-70fc3c37bbbc |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AAEC:25D321:20A38A4:2C26ED6:6A65586B |
| html-safe-nonce | 95e76df1f38c1fa6a28d71bdfd610123a3a5920225b6e9943ff6f39add94edc1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUVDOjI1RDMyMToyMEEzOEE0OjJDMjZFRDY6NkE2NTU4NkIiLCJ2aXNpdG9yX2lkIjoiODE1MjczODM1NzkxNzg2NjA5MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ba23590ac5dcd3c5493149bad8d51b439e0245b66a082db5b6ed49d71485dd40 |
| hovercard-subject-tag | pull_request:145261950 |
| github-keyboard-shortcuts | repository,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/libgit2/libgit2/pull/4369/commits/19e8faba79b300a5ee355e606af5d1f62b4ac930 |
| twitter:image | https://avatars.githubusercontent.com/u/1130014?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1130014?s=400&v=4 |
| og:image:alt | When performing a forced checkout, treat files as modified when the workdir or the index is identical except for the mode. This ensures that force checkout will update the mode to the target. With... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 52c76df668885aaff23b50bdca1fa1ea44ac9c1553e888ebc70ff1e4daa4625b |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/libgit2/libgit2 git https://github.com/libgit2/libgit2.git |
| octolytics-dimension-user_id | 394745 |
| octolytics-dimension-user_login | libgit2 |
| octolytics-dimension-repository_id | 901662 |
| octolytics-dimension-repository_nwo | libgit2/libgit2 |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 901662 |
| octolytics-dimension-repository_network_root_nwo | libgit2/libgit2 |
| 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 | 309153364422b3c499922d1a2a6404910a58ed8e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width