Because WSL file system access is slow, it might be necessary to use Windows git instead of WSL git for large repositories; e.g. mozilla-central.
However, you might still wish to run most tools (including phlay) directly in WSL.
In this case, paths returned from git will be Windows paths, but phlay needs a Unix path for the top level directory.
Therefore, detect this case and translate the path using wslpath.
This is a rather obscure use case (most people would either run everything in WSL or everything in Windows), so I totally understand if you don't want to merge this. However, I thought I'd submit it anyway in case it's useful to someone else.
Because WSL file system access is slow, it might be necessary to use Windows git instead of WSL git for large repositories; e.g. mozilla-central. However, you might still wish to run most tools (including phlay) directly in WSL. In this case, paths returned from git will be Windows paths, but phlay needs a Unix path for the top level directory. Therefore, detect this case and translate the path using wslpath.
This is a rather obscure use case (most people would either run everything in WSL or everything in Windows), so I totally understand if you don't want to merge this. However, I thought I'd submit it anyway in case it's useful to someone else.