delta: sort files and dirs before processing
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jul 2017 19:40:01 +0000 (15:40 -0400)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 10 Jul 2017 19:41:28 +0000 (15:41 -0400)
commit9f5ebb8ac9362a22e6d1391c7ff13160a9d6dacf
tree6749096f9480637a1b9ab1773f4a118c1e54b560
parentf6d703c395745f9ff287cf7965b540f10c79186a
delta: sort files and dirs before processing

This should make output deterministic, and independent of the directory
layout on disk. Just using ordered hashmaps would be enough to make
the output deterministic on a specific machine, but to make it
identical on different machines with the same set of files and
directories, names are sorted after being use.

Fixes #6157.
src/delta/delta.c