I really enjoy symmetry! If I am on channel main with clean working directory and I do:
% pijul reset --channel old_test
% pijul reset --channel main
I expect to find back the exact same state in my working dir.
Now, in main I have _checkouts/symlinkTata (and only this file in this directory).
I cannot track the symlink, which is a bug by itself (see #341).
In old_test, _checkouts doesn’t exist, so it is removed.
When switching back to main, only the known (tracked) files are put back.
Morale:
pijul should only delete files it tracks. That implies:
I really enjoy symmetry! If I am on channel
main
with clean working directory and I do:I expect to find back the exact same state in my working dir.
Now, in
main
I have_checkouts/symlinkTata
(and only this file in this directory).I cannot track the symlink, which is a bug by itself (see #341).
In
old_test
,_checkouts
doesn’t exist, so it is removed.When switching back to
main
, only the known (tracked) files are put back.Morale: