Skip to content

Add line-specific historic information to the source code viewer

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

Description

This is a proposal to add the ability to view information about the most recent changes for each line when viewing source code via the repository source code viewer without having to leave the page.

The idea is to give users the ability to quickly gain more insight into when and why a particular line was changed without having to leave the page.

Similar solutions such as GitLens already exist for IDEs.

Mockups

Screenshot_2022-12-23_at_09.57.47

Screen_Recording_2022-12-23_at_09.54.51.2022-12-23_09_56_04

Some initial ideas for content:

  • Author who last changed the line
  • Date indicating when the most recent commit that changed the line was authored
  • The git commit message of the most recent commit that changed the line
  • A diff of the changed line
  • A link to the related issue
  • A link to the MR that introduced the most recent commit

We should consider adding the ability disable this feature on a user level (User Preferences) because some users may not want this extra information while interacting with the source viewer.

Problem to solve

Increase user productivity and reduce context switching by giving users the ability to view historical information about a particular line without having to leave the current page.

Intended users

Feature Usage Metrics

This page may contain information related to upcoming products, features and functionality. It is important to note that the information presented is for informational purposes only, so please do not rely on the information for purchasing or planning purposes. Just like with all projects, the items mentioned on the page are subject to change or delay, and the development, release, and timing of any products, features, or functionality remain at the sole discretion of GitLab Inc.

Edited by 🤖 GitLab Bot 🤖