command.py: Add command for format-patch a specific hash