Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to change parameters order in iter_commits#1980

AnsweredbyByron
ixSci asked this question inQ&A
Discussion options

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.

Is there a way I can achieve this with GitPython?

You must be logged in to vote

I think this section onusing Git directly would have the answers and what's theoretically possible.

Here, however, I since he method only provideskvargs, 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.

Replies: 1 comment

Comment options

Byron
Dec 4, 2024
Maintainer

I think this section onusing Git directly would have the answers and what's theoretically possible.

Here, however, I since he method only provideskvargs, 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.

You must be logged in to vote
0 replies
Answer selected byixSci
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@ixSci@Byron

[8]ページ先頭

©2009-2025 Movatter.jp