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: github.com
{"@context":"https://schema.org","@type":"QAPage","mainEntity":{"@type":"Question","name":"How to change parameters order in iter_commits","text":"\u003cp dir=\"auto\"\u003eHello, I have the following simple line: \u003ccode class=\"notranslate\"\u003ecommits = repo.iter_commits(reference, **{'not': True}, all=True)\u003c/code\u003e which generates the following: \u003ccode class=\"notranslate\"\u003egit.cmd:Popen(['git', 'rev-list', '--not', '--all', 'REF'...\u003c/code\u003e. Unfortunately this order is wrong and produces no commits as the command should look like this: \u003ccode class=\"notranslate\"\u003egit rev-list REF --not --all\u003c/code\u003e.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eIs there a way I can achieve this with GitPython?\u003c/p\u003e","upvoteCount":1,"answerCount":1,"acceptedAnswer":{"@type":"Answer","text":"\u003cp dir=\"auto\"\u003eI think this section on \u003ca href=\"https://gitpython.readthedocs.io/en/stable/tutorial.html#using-git-directly\" rel=\"nofollow\"\u003eusing Git directly\u003c/a\u003e would have the answers and what's theoretically possible.\u003c/p\u003e\n\u003cp dir=\"auto\"\u003eHere, however, I since he method only provides \u003ccode class=\"notranslate\"\u003ekvargs\u003c/code\u003e, the order is probably not defined anymore. The only way to control it is to use Git directly, i.e. \u003ccode class=\"notranslate\"\u003erepo.git.rev_list('--not', '--all')\u003c/code\u003e, and to parse the result by hand.\u003c/p\u003e","upvoteCount":1,"url":"https://github.com/gitpython-developers/GitPython/discussions/1980#discussioncomment-11460714"}}}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:8940c851-4637-46de-9b44-2a4fa1c1123a |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | A58E:154D88:25D02D:2FE66F:6B00FFBC |
| html-safe-nonce | 75f5d9cbea08c6a627699bf5c0775539a92990e76f725f6f8b8a1dfd7861b6d7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNThFOjE1NEQ4ODoyNUQwMkQ6MkZFNjZGOjZCMDBGRkJDIiwidmlzaXRvcl9pZCI6IjE4ODIxOTA3MzExNzEzOTc1NjQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 194d3f3d541dd61179d6468e0fe34801a8b4f2da9290ab69793586b12a46cccc |
| 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 | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| 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 | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width