Skip to content

wishlist: allow for merge --no-commit and then delayed commit during merge #361

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

Open
yarikoptic opened this issue Nov 3, 2015 · 2 comments

Comments

@yarikoptic
Copy link
Contributor

I need to implement following flow:

git merge -s ours --no-commit BRANCH \
&& git read-tree -m -u BRANCH \
&& do_some_changes \
&& git commit

I was doing first 2 steps manually (well -- with direct git commands) and then git commit using GitPython to come to realization that it nohow cared about those .git/MERGE* left by git merge --no-commit . Note that it would also be necesary/preferable to allow to not specify commit message for subsequent commit command since generic one for merging should suffice in my cases.

@Byron
Copy link
Member

Byron commented Nov 8, 2015

I think for now, it would be easiest to workaround using the git-commit command itself (e.g. repo.git.commit(...). The pure-python commit implementation GitPython comes with could be altered to respect additional files, even though I won't be able to do it due to this library being in maintenance mode.

@yarikoptic
Copy link
Contributor Author

ah, I haven't realized actually that GitPython is not under active development -- good job maintaining, but then I guess I would need to figure out how to proceed having such a realization now ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants