Pijul reset to undelete file/directory

To reset changes to a file, I can use pijul reset filename no problem. Except if I deleted a file and want to undelete it, pijul reset filename now reports the file does not exist (get a Rust “No such file or directory (os error 2)”) and it exits. Likewise, I cannot undelete a folder this way. Is this workflow supported in some way? Thanks!

git reset -- filename would be the git one, but if you’re getting rust errors is this pijul aliased as git?

Apologies, a typo in my original comment. I meant to say when I pijul reset filename that it will not undelete the file and I cannot restore it.

I occasionally search for a solution and run across my own question here… I don’t think a solution exists yet because pijul’s cli parser seems to check that the passed argument is an existing file which shortcuts the command from being processed.

In other words, if I accidentally delete a file I just re-copy the file from the upstream source.