The sound distributed version control system

#251 nothing to record after deleting a file

Closed on January 11, 2021
tankf33der on January 11, 2021

Is it ok that deleting a file comes without commit?

Latest pijul from nest, preparing sandbox:

$ pijul init mike
$ cd mike
$ mkdir a
$ pijul add a
$ pijul record -am"."
Hash: F2LBP7OAIGWST27Y4NCNSVKUTBZU42R5APQFZ5SL3EKLLI5DYIBAC
$ touch a/b
$ pijul add a/b
$ pijul record -am"."
Hash: 5MZZUMPXSG7WL5X5ZWANET6WRK4OCMC4HYIOD2JG7KE3UJVYCRXAC
$ pijul ls
a
a/b
$ pijul diff --short
$

After removing a file there is nothing to record:

$ pijul remove a/b
$ pijul ls
a
$ pijul record -am"."
Nothing to record
$

But when deleting a dir there is always something to do:

$ pijul remove a
$ pijul record -am"."
Hash: 43GJ4IDOQBOUXDTJODYMVA3NABH6H3523545FRSXMURJ244FCDUAC
$
pmeunier added a change on January 11, 2021
CXM5CBS27BL35Z6TRCI7OS4AHWVJ4VFND7HECGAUC74ZQ5KFZXLAC
main
pmeunier on January 11, 2021

Thanks! This was due to a mismatch between the CLI interface (where I added a remove command for the sake of completeness) and libpijul, where only actual deletions were recorded.

pmeunier closed this discussion on January 11, 2021