Add generate_diff doctext and return the value directly

Signed-off-by: Tomas Hozza <thozza@redhat.com>
rename the patch_path arg of generate_diff to be more descriptive

Signed-off-by: Tomas Hozza <thozza@redhat.com>