Add prefix oriented completions for diff and format-patch commands.