Skip to content

Fix unwanted events when diffing untracked files #4917

@eamodio

Description

@eamodio

Fixes an issue where diffing untracked files could trigger unwanted file system events.

Summary

Uses a temporary index for diffs of untracked files to avoid side effects.

Impact

Users working with untracked files in the Commit Composer no longer experience unexpected behavior from file system event triggers.

Validation

  1. Open a repository with untracked files
  2. Use the Commit Composer to view diffs of untracked files
  3. Verify no unexpected events or side effects occur

Risk

Low - isolated change to diff operation handling.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions