diff.c: allow to pass more flags to diff_populate_filespec