See the comments in the source, especially in getposixdiffs.c. Anyone who thinks that this needs an autoconfiguration mechanism needs his head examining.