[PATCH] Split external diff command interface to a separate file.