mirror of
https://seed.radicle.dev/rad:z6cFWeWpnZNHh9rUW8phgA3b5yGt.git
synced 2026-11-16 16:20:42 +08:00
Comparing tree entries would only take into account their names. While this is useful, it is also useful to compare by their entry kind first, where trees take precedence over blobs. A test is added to ensure the ordering is respected. While testing, it was noticed that the entries aren't sorted when be passed in. When a `Tree` is constructed it will now sort the entries first, ensure they are given back in sorted order. Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com> X-Clacks-Overhead: GNU Terry Pratchett