-
-
Notifications
You must be signed in to change notification settings - Fork 937
Wrong build order of arguments and options? #70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Unfortunately I don't believe this is easy to fix, as the order it uses seems to work for most other commands, whereas a different order doesn't. However, this was defined with older versions of git, and I remember that I have chosen this particular order on purpose. |
You're right. This is an exception to other git commands. Your suggestion of a flag might work just fine. I'll try to send a PR if I find some free time. Thanks for the reply and thanks for this awesome project! |
How do you build this command |
I don't think it can be build with the current engine, there needs to be a way to reverse the order. |
Here's a workaround:
|
I confirm that the only way to control order is to use the |
Executing
repo.git.stash('save', keep_index=True)
turns into:The command built by GitPython is
git stash --keep-index save
.If using
git stash save --keep-index
(options first) then this works fine. Thoughts?The text was updated successfully, but these errors were encountered: