Title: How to change parameters order in iter_commits · gitpython-developers/GitPython · Discussion #1980 · GitHub
Open Graph Title: How to change parameters order in iter_commits · gitpython-developers/GitPython · Discussion #1980
X Title: How to change parameters order in iter_commits · gitpython-developers/GitPython · Discussion #1980
Description: How to change parameters order in iter_commits
Open Graph Description: Hello, I have the following simple line: commits = repo.iter_commits(reference, **{'not': True}, all=True) which generates the following: git.cmd:Popen(['git', 'rev-list', '--not', '--all', 'REF'.....
X Description: Hello, I have the following simple line: commits = repo.iter_commits(reference, **{'not': True}, all=True) which generates the following: git.cmd:Popen(['git', 'rev-list', &...
Opengraph URL: https://github.com/gitpython-developers/GitPython/discussions/1980
X: @github
Domain: togithub.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to change parameters order in iter_commits","text":"Hello, I have the following simple line: commits = repo.iter_commits(reference, **{'not': True}, all=True) which generates the following: git.cmd:Popen(['git', 'rev-list', '--not', '--all', 'REF'.... Unfortunately this order is wrong and produces no commits as the command should look like this: git rev-list REF --not --all.
\nIs there a way I can achieve this with GitPython?
","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"I think this section on using Git directly would have the answers and what's theoretically possible.
\nHere, however, I since he method only provides kvargs, the order is probably not defined anymore. The only way to control it is to use Git directly, i.e. repo.git.rev_list('--not', '--all'), and to parse the result by hand.
","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1980#discussioncomment-11460714"}}}
| route-pattern | /_view_fragments/Voltron::DiscussionsFragmentsController/show/:user_id/:repository/:discussion_number/discussion_layout(.:format) |
| route-controller | voltron_discussions_fragments |
| route-action | discussion_layout |
| fetch-nonce | v2:83855cde-215c-db4d-cdd2-9b3cd19d9620 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | E24E:DDC61:BC63E3:108DB06:6968EF54 |
| html-safe-nonce | bcb7acd90f80e9c91ef96679899e6b8b060434baad89933eb4c5479319366c81 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMjRFOkREQzYxOkJDNjNFMzoxMDhEQjA2OjY5NjhFRjU0IiwidmlzaXRvcl9pZCI6IjE2NjI1NjU4NTYxODE4MDg5ODAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c05f34620630ce4a99b7b163bf4057085aec5af6c7ae4cf4da3b168d15f91df2 |
| hovercard-subject-tag | discussion:7608852 |
| github-keyboard-shortcuts | repository,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/Voltron::DiscussionsFragmentsController/show/gitpython-developers/GitPython/1980/discussion_layout |
| twitter:image | https://opengraph.githubassets.com/e0d32a51ec4bb056925a1704a88505e6460f5a0d996e42393bba751f6e5de82b/gitpython-developers/GitPython/discussions/1980 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e0d32a51ec4bb056925a1704a88505e6460f5a0d996e42393bba751f6e5de82b/gitpython-developers/GitPython/discussions/1980 |
| og:image:alt | Hello, I have the following simple line: commits = repo.iter_commits(reference, **{'not': True}, all=True) which generates the following: git.cmd:Popen(['git', 'rev-list', '--not', '--all', 'REF'..... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 51dad138a86b7be4249ddf653c758a9e2621d74f432542c93532a31064797ca5 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aba32f111c4c7d50bd0c1ac012cd08cdc17512e0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width