On Windows, pijul doesn’t consistently use
\ as a directory separator. I’m not sure if there are other places like this, but
path::components only accepts
\ and is sometimes given
pijul diff --shortshows every file as untracked.
pijul resetsometimes errors and sometimes corrupts the working directory.
I don’t know if it’d be better to normalize paths more consistently, or to accept either slash like this patch does, but it does fix both symptoms. I’m pretty sure the Windows file APIs will accept either slash.