pijul_org / pijul

#375 Reverting the adding of a file before reverting its changes results in an invalid state

Opened by iantownsend, on March 20, 2019
Closed
iantownsend commented on March 20, 2019

To reproduce:

$ pijul init
$ echo example > example.txt
$ pijul add example.txt
$ pijul revert
added file README.md

Shall I revert this change? (1/2) [ynkad?] a

At this point, the repository is in an invalid state and pijul status will panic. To fix this, I would expect Pijul to offer to revert adding a file only if all its changes have first been reverted.

pmeunier commented on March 26, 2019