poiu- · 2022-08-01 15:07
When inspecting a commit from the log in magit, is it possible to jump to the next commit?
​
1) look at some log
2) inspect some revision/commit from the log
3) you see a detailed view, diff, hunks, etc
4) go to next entry in log
​
You CAN do this by pressing q, next, enter again. I'd like to have a single command.
organic-bookworm · 2022-08-01 18:14
Section movement commands (e.g. `magit-section-forward-sibling`) from `magit-log` buffer update currently shown revision buffer.
poiu- · 2022-08-02 08:54
Sadly, this doesn't seem to do what I want. It just goes to the next section in the commit view.
​
when leaving the commit buffer open and switching to the log buffer, this just moves the cursor to the next line.
organic-bookworm · 2022-08-02 10:04
>when leaving the commit buffer open and switching to the log buffer
Yep, this scenario.
See [Section Movement](https://magit.vc/manual/magit/Section-Movement.html). The `magit-log` buffers should have [`magit-log-maybe-update-revision-buffer`](https://magit.vc/manual/magit/Section-Movement.html#index-magit_002dlog_002dmaybe_002dupdate_002drevision_002dbuffer) function in the `magit-section-movement-hook`.
poiu- · 2022-08-04 12:06
Interesting. magit-section-movement-hook does have magit-log-maybe-update-revision-buffer , but still nothing happens, not even when calling that function explicitely. \*puzzled\*