Skip to content

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