Skip to content

Regression with handling directories since 194 (was: "diffoscope reacts differently comparing a file against a directory when the directory is specified first (correct output) vs. second (crashes)")

Attached very simple patch lets "diffoscope /etc/motd /var" generate the same output as "diffoscope /var /etc/motd", instead of crashing. The utility of comparing a directory to a file is doubtful, but at least we can handle it gracefully.

diffoscope-directory-second.patch

Edited by Chris Lamb
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information