[go: up one dir, main page]

Skip to content

Devise an easy way to uniquely identify diff files and lines across all contexts

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

Summary

Currently we use a combination of several strategies to identify a line on a diff file.

This has broken down in the past by being easily mixed up and by not supporting certain scenarios like symlinks where the same file name is shown twice.

Improvements

Have an easy and unique way to identify a specific:

  • diff file (file path, file mode)
  • line (and interval)

In the contexts:

  • inline / parallel mode
  • specific version comparison
  • ...

Risks

Central mechanism to diff rendering.

Involved components

  • app/assets/javascripts/diffs

Optional: Intended side effects

Optional: Missing test coverage

Edited by 🤖 GitLab Bot 🤖