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: user:token@github.com
IPv4 address: 140.82.112.3
{"@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:3b16ddbb-f985-c88c-8061-62df217d073f |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | 8476:249987:E46D9F:13623BF:6B065642 |
| html-safe-nonce | 8c0e5a0d821acdcb9f3d0fe50cf4b6701585d0a1da089ed8228df0951442feb3 |
| visitor-payload | eyJyZWZlcnJlciI6bnVsbCwicmVxdWVzdF9pZCI6Ijg0NzY6MjQ5OTg3OkU0NkQ5RjoxMzYyM0JGOjZCMDY1NjQyIiwidmlzaXRvcl9pZCI6IjQyNTc4MzQyOTQ3NDk1ODI5MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJjZW50cmFsdXMifQ== |
| visitor-hmac | a6b979d4273bc45f03e5a8fcc72bfabb9ca8242466a16f5cb5743a1e67488ff0 |
| 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 | 6324e6ac990fb6befbec840cc0e102a1071c339bfe8f9826bb12de2e3ba1d297 |
| 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 | 7f0aa75f4141d440c6110dc31af7ea7797abb6c4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width