Skip to content

Get includeUntracked out of getDiff #4635

@axosoft-ramint

Description

@axosoft-ramint

getDiff currently does a lot of computationally expensive work like getStatus when includeUntracked is on. On top of that, it stages files with intent to add which has side effects like triggering index changes.

These should be done intentionally outside of getDiff to make it more pure.

Metadata

Metadata

Labels

area-gitIssues or features related to using Gitverified ✔Verified

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions