Add keyboard shortcut for Show latest file button in merge requests

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

  • Close this issue

Problem to Solve

When navigating a merge request via commits, you sometimes want to return to see all of the changes in the merge request. Currently the only way to do this is via clicking a button on the merge request that says show latest changes

Screenshot_2024-01-31_at_9.26.38_AM

Proposal

In order to improve the navigation of commit based reviews we should add a keyboard shortcut that allows you to return to viewing all of the changes. This would align well with other commit based keyboard shortcuts c and x which already exist to navigate through commits.

Original Description

Proposal

When I'm on a MR e.g.

.../merge_requests/1

I can click on a commit under the "commits" tab to select a specific commit. Gitlab automatically switches to the "diffs" tab, showing them for that specific commit, e.g.

.../merge_requests/1/diffs?commit_id=12345678

If I click on the "Overview" tab afterward, I believe it should dismiss the commit ID. Currently, it opens the overview with the commit ID:

.../merge_requests/1?commit_id=12345678

however, it should simply open

.../merge_requests/1

For some of us this is a perennial annoyance in Gitlab.

Zendesk request

Edited Aug 28, 2025 by 🤖 GitLab Bot 🤖
Assignee Loading
Time tracking Loading