Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package-deps-hash] Expose hashFilesAsync API #4934

Merged
merged 4 commits into from
Sep 20, 2024

Conversation

dmichon-msft
Copy link
Contributor

Summary

Exposes an asynchronous API for hashing files via git hash-object. This API supports the file names being provided asynchronously.

Details

This is the underlying API that performs file hashing for untracked or locally-modified files in getRepoStateAsync.

This differs from getGitHashForFiles in that the API is asynchronous, and that it does not invoke path.resolve.

How it was tested

It is used by getRepoStateAsync, so the existing unit tests for getRepoStateAsync cover its functionality.

Impacted documentation

Function documentation.

@iclanton iclanton enabled auto-merge (squash) September 20, 2024 23:15
@iclanton iclanton merged commit d7b6ad0 into microsoft:main Sep 20, 2024
4 checks passed
@dmichon-msft dmichon-msft deleted the hash-files-async branch September 20, 2024 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Closed
Development

Successfully merging this pull request may close these issues.

2 participants