The sound distributed version control system

#151 pijul ls lists files in reverse alphabetical order

Closed on December 4, 2020
loewenheim on December 1, 2020

From what I can tell, pijul ls just uses the WorkingCopyIterator, so this iterator probably reverses the file names.

arijid79 on December 2, 2020

Maybe we can call collect() on the iterator to get a vector and use the .reverse() function on the vector

ammkrn added a change on December 3, 2020
NZBCJOC26DV4MPTK7SYSYWYW25KRWP763DPOVZG5NNMV3BRGSBHAC
ammkrn on December 3, 2020

@arijid79 I think you’re right that collect() is necessary, since WorkingCopyIterator doesn’t implement DoubleEndedIterator and there doesn’t seem to be a simple way of implementing next_back().

pmeunier added a change on December 4, 2020
KD4JIMAE6M2LFWEHFPEL4RTRV7UWYWNGGS52N2TKQ42ZNFSNLCEQC
main
pmeunier on December 4, 2020

Thanks for your change, but I decided to fix the root cause of the problem instead.

pmeunier closed this discussion on December 4, 2020