You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Create a merge commit when pulling/merging changes where all conflicts can be resolved automatically #639
Given: A local branch and remote branch, both with commits. When merging those, all conflicts can be resolved automatically, for example because different files were changed locally and remote.
Thanks for your feedback - I'll try to write a test case that shows the scenario and open a pull request for that in the next few days.
One thing that would help me with that: While merging, the index seems to be in a special state (the cmdline git prompt shows this as "MERGING", you can leave it via git merge --abort). I tried to find functions relating to this state (querying, finishing, aborting) in libgit2 as well but couldn't find anything. Any hints?
Activity
pietbrauer commentedon Oct 13, 2017
Thanks for opening this. I think the best way to discuss this solution would be if you open a Pull Request so we can discuss it there.
ralfebert commentedon Oct 14, 2017
Thanks for your feedback - I'll try to write a test case that shows the scenario and open a pull request for that in the next few days.
One thing that would help me with that: While merging, the index seems to be in a special state (the cmdline git prompt shows this as "MERGING", you can leave it via git merge --abort). I tried to find functions relating to this state (querying, finishing, aborting) in libgit2 as well but couldn't find anything. Any hints?
jeffreybergier commentedon Aug 23, 2018
@ralfebert
- (BOOL)cleanupStateWithError:(NSError * _Nullable __autoreleasing *)error;will clean up the mid-merge state.