pijul reset <FILE>
resetting modified file.
pijul reset
resetting working dir and deleted files will appear.
This is expected in my world.
-1
Doesnβt deletion count as a form of modification to a file?
For me, I would expect reset on a specific path to behave the same as reset on the whole working dir, except it constrains the items it resets. Itβs potentially confusing to have two different sets of behaviour I need to remember - a bit like the trailing slash on rsync. And if I reset a file, Iβm saying I want it to go back to how it is in the repository, irrespective of what sort of changes I have made to it. That could be content, it could be permissions/ownership, it could be that itβs not longer present.
It also looks to be that resetting a file that isnβt in the repository doesnβt produce an error:
[π] user@Host /t/pijul> touch somefile.txt # Not tracked
[π] user@Host /t/pijul> date > SomeFile.txt
[π] user@Host /t/pijul> pijul record -m 'date' SomeFile.txt
Hash: RAV7MIYHR5AWV6USQGHEZDKNG4U7DCQCKMHBE7RC5AUPWTRVG5UQC
[π] user@Host /t/pijul> pijul reset somefile.txt # oops
Outputting repository β
Reset given paths to last recorded change
[π] user@Host /t/pijul>
Is this as expected? I would assume that if I remove the file, it would be output - i.e. the argument to reset relates to what is in the repository, more than what is in my working directory. I had to touch it in order to reset.
Similarly I tried to
pijul mv
and got a message that the file was missing - the reason is that it had changed, and pijul was showing it both as untracked and deleted.