Resolve a path the user named (a tool’s path argument, which may start with ~) to the root a scan of it uses: the Git checkout containing it, or a narrow plain folder when it is in no checkout.
path
~