idea for a possible PR: change shallow comparison settings for directories
TL;DR: I am thinking about implementing some changes, and want to ask if they are desirable
Hello, I am thinking about the settings regarding shallower comparison of directories, and how it caused me a few issues a while ago when dealing with multi-GB directories containing mostly 10kB files. Currently (as far as I understand), it is possible to either compare files using size/mtime exclusively, or contents exclusively.
Something that would have been handy back then is a hybrid mode, which first compares the size, then the modification time (if the sizes agree), and finally the content (if the times disagree).
Here are prototypes for the new settings and the new "decision tree" to determine if two files are identical or not: (in that graph, the methods are numbered in the same order as in the UI)
Do you think this is something worth implementing ? If so, I'll try to do it.
Have a nice day!