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

git-merge-file functionality for bare repos (generate merge file in memory) #2119

Closed
mhodgson opened this issue Feb 14, 2014 · 4 comments
Closed

Comments

@mhodgson
Copy link

It isn't currently possible to generate a merge-file when working with bare repos. This makes it impossible to determine the conflicting parts of a given file when trying resolve a conflict during a merge. It would be lovely if there were a mechanism by which to generate a diff (or something like it) that only shows the conflicting parts of the file. This would enable the creation of user friendly merge tools without relying on parsing the merge-file from the filesystem (especially in cases where you're using bare repos and alternate ODB backends).

I don't have a proposal for the API for this feature, but I suspect it should look something like a diff.

Would anyone else find this useful? Happy to help work on it if we can rough out an API. At the very least I promise to update the Rugged bindings.

cc/ @ethomson

@arthurschreiber
Copy link
Member

Yes, I'd also love to see this implemented. 👍

@ethomson
Copy link
Member

@arthurschreiber how would you want the data back? Is a git_buf okay?

@vmg
Copy link
Member

vmg commented Feb 24, 2014

@ethomson: Like most APIs, ideally we'd have a callback-based writer so we can write directly to a buffer, or somewhere else. :)

@carlosmn
Copy link
Member

The work to introduce this from #2140 was merged as part of #2183.

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

No branches or pull requests

5 participants