-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace GetContainingDigests() with VirtualApply()
Right now we have completely different code paths for computing the containing digests for files and directories. For files we call LinkableLeaf.VirtualApply(), while for directories we call InitialContentsFetcher.GetContainingDigests(). The downside of the current approach is that generic virtual file system APIs are strongly coupled against REv2. By giving InitialContentsFetcher a VirtualApply(), we get rid of the coupling. In addition to that, it's now possible to call InitialChild.GetNode().VirtualApply() to obtain the set of containing digests in a file type oblivious way.
- Loading branch information
1 parent
4983b38
commit b7b3bc4
Showing
6 changed files
with
59 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters