-
Notifications
You must be signed in to change notification settings - Fork 74
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
canonical-path: add strip_prefix #579
Comments
Can you provide a concrete use case? To me it seems a bit unusual: where adding to an existing path addresses subtrees, |
In Pijul, we need paths relative to the root of a repository: specifically, when we have a repository in Now, this wasn't a problem on Unix, since the root of the repository is always in canonical form, so I was canonicalizing paths, and then stripping off the root of the repository. Unfortunately, that doesn't really work on Windows, where I understand that this is a strange use case, since we're essentially implementing a filesystem inside another filesystem, and we can totally do without |
Having a checked version of
strip_prefix
, guaranteed to happen only between two canonical paths, would be very useful.The text was updated successfully, but these errors were encountered: