hardlink silently (and undocumentedly) skips certain hard-coded files and directories, but offers no option for users to exclude other files.
These changes remove the silent skipping, adds an option for the user to specify a regex to skip selected files, and documents this and how to achieve the historic skipping behavior.
The downside it it links against the pcre2 library, so the resulting binary is about 3x bigger (from ~15k to ~44k).
hardlink silently (and undocumentedly) skips certain hard-coded files and directories, but offers no option for users to exclude other files.
These changes remove the silent skipping, adds an option for the user to specify a regex to skip selected files, and documents this and how to achieve the historic skipping behavior.
The downside it it links against the pcre2 library, so the resulting binary is about 3x bigger (from ~15k to ~44k).