Skip to content

Conversation

@tyrielv
Copy link
Contributor

@tyrielv tyrielv commented Dec 11, 2025

The previous implementation of GetHeadTreeId called "git show -s". "-s" suppresses the diff from the output, but it turns out git still performs the diff operation internally. The inefficiency isn't necessarily an issue, but we are running git.exe with the virtualization hook off so if the objects required for the diff are not already downloaded the command will fail.

The new implementation produces the same output, but doesn't try to do a diff at all.

The previous implementation of GetHeadTreeId called "git show -s". "-s"
suppresses the diff from the output, but it turns out git still performs
the diff operation internally. The inefficiency isn't necessarily an
issue, but we are running git.exe with the virtualization hook off so
if the objects required for the diff are not already downloaded the
command will fail.

The new implementation produces the same output, but doesn't try to do
a diff at all.
@tyrielv tyrielv force-pushed the tyrielv/fix-head-tree-id branch from 2f1bd65 to 3cb5290 Compare December 11, 2025 21:19
@tyrielv tyrielv merged commit ef34a34 into microsoft:master Dec 12, 2025
49 checks passed
@mjcheetham mjcheetham mentioned this pull request Dec 16, 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.

2 participants