-
Notifications
You must be signed in to change notification settings - Fork 127
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
Add a "status" operation #22
Comments
That's a great idea, and one that somebody else has also wished for. If you would like to work on it, I would be happy to help you get started. |
I would like to work on it, but have a bit too much on my plate at the On 20 July 2013 15:58, Michael Haggerty [email protected] wrote:
|
I would like that feature as well. I guess that information shouldn't be too hard to extract from MergeState? If you give me a pointer or two I'd be happy to contribute. |
@jrdavid: Cool that you want to work on this; here's some info to get you started: The state of the imerge as a whole is stored in the So if you look at the code for 'continue', you will see that it calls
This locates where the just-completed merge is located in the merge graph. From there, it would be easy to output information about the original commits that are being merged, similar to what is done in However, the "status" command that you want to implement can't start from a merge commit, because the manual merge hasn't been done yet. Instead it will have to find out, from Git, if a merge is currently in progress and if so, what two commits are being merged. The first parent of an in-progress merge, of course, is stored in HEAD and can be determined via Then stick those two commit SHA-1s into I hope that helps! If you have any questions, don't hesitate to ask. |
This issue has interesting discussion in it, but is otherwise superseded by issue #33. |
When there is a merge conflict that must be resolved a very helpful message gets output. Then I start looking at the two commits, trying to understand what they were trying to do, before going to the mergetool to solve them.
The problem is that if I want to go back to see, for instance, the other commit, I need to scroll up the terminal buffer to find that original helpful message. It would be nice if there were a "status" operation of imerge that can output that again.
Thanks
The text was updated successfully, but these errors were encountered: