Title: Allow for setting git options, that are persistent across subcommand calls by bpoldrack · Pull Request #536 · gitpython-developers/GitPython · GitHub
Open Graph Title: Allow for setting git options, that are persistent across subcommand calls by bpoldrack · Pull Request #536 · gitpython-developers/GitPython
X Title: Allow for setting git options, that are persistent across subcommand calls by bpoldrack · Pull Request #536 · gitpython-developers/GitPython
Description: Currently _git_options in class Git are reset after each subcommand call. While this is appropriate in most cases, I'm in need to have options for the git executable, that are used with all calls to git on a certain repository and I can't provide this option for each and every call. Therefore I'd like to introduce the possibility to persistently set such options for a given instance of Git. This is my first PR here, so I'm not exactly sure, what you want me to provide. CONTRIBUTING.md reads: "Write a test that fails unless your patch is present." Where am I supposed to put such a test? Just add it to git/test/test_git.py?
Open Graph Description: Currently _git_options in class Git are reset after each subcommand call. While this is appropriate in most cases, I'm in need to have options for the git executable, that are used with all cal...
X Description: Currently _git_options in class Git are reset after each subcommand call. While this is appropriate in most cases, I'm in need to have options for the git executable, that are used with all...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/536
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f8cd2e6e-165e-f78f-49c3-51121bed4f3d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 8AA4:4CEB4:15971F:1D12B1:6969C878 |
| html-safe-nonce | e1189039ea1df1e36d8aea8fb7c6bdf87f51dd883a1cc7d2bff5305dab7808cc |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QUE0OjRDRUI0OjE1OTcxRjoxRDEyQjE6Njk2OUM4NzgiLCJ2aXNpdG9yX2lkIjoiMjQ2NzQyMDg0ODg4ODg1ODc0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 2a2f9dc12304dc0d8f123815256d869062a1e0646a5562ee89cf065c1543e26c |
| hovercard-subject-tag | pull_request:89813479 |
| 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/gitpython-developers/GitPython/pull/536/files |
| twitter:image | https://avatars.githubusercontent.com/u/10498301?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/10498301?s=400&v=4 |
| og:image:alt | Currently _git_options in class Git are reset after each subcommand call. While this is appropriate in most cases, I'm in need to have options for the git executable, that are used with all cal... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | acedec8b5f975d9e3d494ddd8f949b0b8a0de59d393901e26f73df9dcba80056 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| 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 | 83c08c21cdda978090dc44364b71aa5bc6dcea79 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width