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"}}}
| 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:1815f5f5-a38c-b89e-bc6d-3cbc15597744 |
| current-catalog-service-hash | 9f0abe34da433c9b6db74bffa2466494a717b579a96b30a5d252e5090baea7be |
| request-id | EB52:136256:1273051:1A99732:6A633926 |
| html-safe-nonce | 5906fb8fb7babaa643a465c663c80cee6c3e10a7c62f345c928a88a9cc44f8ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQjUyOjEzNjI1NjoxMjczMDUxOjFBOTk3MzI6NkE2MzM5MjYiLCJ2aXNpdG9yX2lkIjoiNzYzNjQ4OTc4NzIyNDA0NTg2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 83bcedd45e84b138d4c179ce18e83c5b7591a2fe120c36c0df75372040a102b2 |
| 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 | 59e55daad7174ca59d63c6974d58276ccb5477442e550bebb3c035e1bef11c94 |
| 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 | 990295d92a4cc7b63fbbd83a046217cd7d77d49c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width