3

When I'm reviewing a patch series in magit I want to be able to look in detail at each patch in a tree. However there doesn't seem to be an easy way to navigate to the next/previous commit from inside magit-revision-mode. I end up having to switch back to log mode to select the next commit which is inefficient.

Does magit-revision-mode have any context for where in the log view it was when it was called?

  • When one opens the buffer in magit-rev-mode using RET from a buffer in blame mode this does not help. Except if one can open the log buffer with the point at the blamed commit. – user2323647 Apr 8 at 16:52
7

That isn't supported yet but you can do it "the other way around". Instead of pressing RET to show and select the revision buffer, press SPC to show the revision buffer but stay in the log buffer.

When you move to another revision in the log buffer, the revision buffer is automatically updated. And you can press SPC again to scroll the revision buffer, while staying in the log buffer.

Of course some things are not possible when you stay in the log buffer, e.g. you cannot collapse any sections in the revision buffer from the log buffer. So yes, it would be nice to move to the next/previous revision while in the revision buffer. Please open a feature request for that.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.