Added the p function.

This function acts as a shortcut to create a patch file from a git repo.