Skip to content

Adds contributors view mode to File History#4360

Merged
d13 merged 1 commit intofeature/grouped-view-headersfrom
feature/file-history-contributors
Jun 2, 2025
Merged

Adds contributors view mode to File History#4360
d13 merged 1 commit intofeature/grouped-view-headersfrom
feature/file-history-contributors

Conversation

@eamodio
Copy link
Member

@eamodio eamodio commented Jun 2, 2025

FYI this is sitting on top of feature/grouped-view-headers since that should be merged first, and this adds the new options in the header too.

Overview

Introduces a new view mode toggle for the File History view that allows users to switch between viewing commits and contributors for a specific file or folder.

Changes

  • New view mode toggle: Adds "View Contributors" and "View Commits" buttons to switch between display modes
  • Contributors integration: Leverages existing contributor functionality to show file-specific contributor statistics
  • Context awareness: Automatically resets to commits mode when cursor following is enabled since line ranges aren't supported for contributors
  • Menu reorganization: Reorganizes existing menu items to accommodate the new mode toggle buttons
  • Telemetry support: Adds tracking for the new mode switching commands

Benefits

  • Provides users with multiple perspectives on file history - both chronological commits and contributor-based views
  • Enhances the existing contributor functionality by making it accessible at the file level
  • Maintains consistency with existing view patterns while expanding functionality
  • Offers more flexibility for analyzing file ownership and contribution patterns

@eamodio eamodio requested a review from d13 June 2, 2025 17:36
@eamodio eamodio force-pushed the feature/file-history-contributors branch from 2d16d6c to 9596cde Compare June 2, 2025 17:40
@eamodio eamodio force-pushed the feature/grouped-view-headers branch from 1882388 to 278e3a4 Compare June 2, 2025 17:41
@eamodio eamodio force-pushed the feature/file-history-contributors branch from 9596cde to 9b97716 Compare June 2, 2025 17:41
@d13 d13 linked an issue Jun 2, 2025 that may be closed by this pull request
@d13 d13 self-assigned this Jun 2, 2025
Copy link
Member

@d13 d13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@d13 d13 merged commit 2f10db3 into feature/grouped-view-headers Jun 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show contributors in File History

2 participants