Skip to content

Conversation

@tyrielv
Copy link
Contributor

@tyrielv tyrielv commented Jun 27, 2025

Since prefetch can be quite long for large repos if pack indexes from the server are not trusted (ie need to be built locally after the pack files are downloaded), start prefetch as a separate background process in that case.

See also #1848 for making more history operations usable while the prefetch is still running.

Copy link
Contributor

@derrickstolee derrickstolee left a comment

Choose a reason for hiding this comment

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

This makes sense.

ReturnCode result = this.Execute<PrefetchVerb>(
enlistment,
verb =>
bool trustPackIndexes = enlistment.GetTrustPackIndexesConfig();
Copy link
Contributor

Choose a reason for hiding this comment

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

I see that this is already being loaded in the prefetch command, so we don't pass this as an option to the prefetch command as a CLI argument. That took me a tiny bit to figure out, so I thought it worth mentioning.

@tyrielv tyrielv merged commit 2ad18e8 into microsoft:master Jul 9, 2025
5 checks passed
@mjcheetham mjcheetham mentioned this pull request Aug 18, 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.

3 participants