Skip to content

Instantly share code, notes, and snippets.

@szeidler
Last active November 10, 2017 10:50
Show Gist options
  • Save szeidler/12da0e9667829f6b8d4e to your computer and use it in GitHub Desktop.
Save szeidler/12da0e9667829f6b8d4e to your computer and use it in GitHub Desktop.
Drupal git patch
# Normal patch.
git diff --staged 7.x-1.x > [project_name]-[short-description]-[issue-number]-[comment-number].patch
# Interdiff patch.
git diff --staged old_patch_branch > interdiff-[issue-number]-[old-patch-comment-number]-[comment-number].diff.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment