-
-
Notifications
You must be signed in to change notification settings - Fork 954
-
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?
Beta Was this translation helpful? Give feedback.
All reactions
I think this section on using Git directly would have the answers and what's theoretically possible.
Here, 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.
Replies: 1 comment
-
I think this section on using Git directly would have the answers and what's theoretically possible.
Here, 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.
Beta Was this translation helpful? Give feedback.