Skip to content
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

Basic file merging #672

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

tiennou
Copy link
Contributor

@tiennou tiennou commented Oct 27, 2018

This adds a wrapper for the simple git_merge_file & git_merge_file_from_index.

This is somewhat a leftover from #664, because the implementation was already available in libgit2 as the latter, and thus misses nicer things (like filenames in conflict markers).

I'd like to get that in ASAP, so I can update libgit2 and make a release from that, and that API is in my way 😉.

This fixes the file path in the diff always being `file.txt`, as well as (I suspect) taking into account what's in the index instead of going straight to the ODB.
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.

1 participant