Skip to content

Conversation

@lszomoru
Copy link
Member

@lszomoru lszomoru commented Nov 8, 2025

No description provided.

Copilot AI review requested due to automatic review settings November 8, 2025 19:01
@lszomoru lszomoru enabled auto-merge November 8, 2025 19:01
@lszomoru lszomoru self-assigned this Nov 8, 2025
@lszomoru lszomoru added this to the November 2025 milestone Nov 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new diffWithHEADShortStats method to the git service for retrieving git diff statistics (files changed, insertions, deletions) including untracked files. The method is used in the Copilot CLI chat sessions feature to display statistics for worktree sessions.

  • Adds diffWithHEADShortStats method to git service interface and implementations
  • Implements custom logic to include untracked files in statistics by counting their lines
  • Updates Copilot CLI chat session items to display diff statistics and refactors tooltip/description generation

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/platform/git/common/gitService.ts Adds interface definition for diffWithHEADShortStats method
src/platform/git/vscode/git.d.ts Adds type definition for repository diffWithHEADShortStats method
src/platform/git/vscode/gitServiceImpl.ts Implements diffWithHEADShortStats with custom handling for untracked files
src/platform/test/node/simulationWorkspaceServices.ts Adds stub implementation to testing git service
src/extension/prompt/node/test/repoInfoTelemetry.spec.ts Adds mock method to test git service
src/extension/chatSessions/vscode-node/copilotCLIChatSessionsContribution.ts Uses new method to display statistics for CLI sessions and refactors session item generation

@lszomoru lszomoru force-pushed the lszomoru/wonderful-jackal branch from 1bc7895 to 3787dd8 Compare November 8, 2025 19:12
@lszomoru lszomoru disabled auto-merge November 8, 2025 20:35
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.

2 participants