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: redirect.github.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:f304ff90-1b7c-c730-4e0e-accd1026d2be |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 861C:CADE5:11B066F:17A4E2D:6969A86F |
| html-safe-nonce | 4ac56f4f7593cb618ce96c3eef04cc486ce9e7f1b06b43a0f2ceae4ee4aa84a1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjFDOkNBREU1OjExQjA2NkY6MTdBNEUyRDo2OTY5QTg2RiIsInZpc2l0b3JfaWQiOiI4Mzc3NjgyMTU5MDE4Mjg5MjYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | acfe6af72fa927e0e63b7c24be86a9d15adf34838f2f65c383a9d88b9a9092c2 |
| 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 | 24c4c97a2d520cb286b35e1a4c22d7a4df3c26a2fa28dd7cdf0e65db327b4de7 |
| 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 | 124667f43168afb6c9c03b7c02eb5b1d2e1be3d9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width