Skip to content

Add Repository.merge_commits()#445

Merged
jdavid merged 2 commits intolibgit2:masterfrom
carlosmn:merge-commits
Oct 31, 2014
Merged

Add Repository.merge_commits()#445
jdavid merged 2 commits intolibgit2:masterfrom
carlosmn:merge-commits

Conversation

@carlosmn
Copy link
Copy Markdown
Member

This allows you to merge arbitrary commits, returning an index, which is
useful when dealing with bare repos in which we want to merge.


I don't need to use the options in my use-case at the moment, but the structures are there in case anybody does want to add them.

This allows you to merge arbitrary commits, returning an index, which is
useful when dealing with bare repos in which we want to merge.
@carlosmn
Copy link
Copy Markdown
Member Author

Actually I am going to need some options, so there's a couple more commits coming.

I've gone with taking a string and converting it because the depth of
the namespacing in the libgit2 name is rather large and we don't care
about the global namespace that C has; and this also lets us pass the
same as the '-X' option to git-merge.
@jdavid jdavid merged commit bc8b29b into libgit2:master Oct 31, 2014
@carlosmn carlosmn deleted the merge-commits branch October 31, 2014 09:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants