Skip to content

Instantly share code, notes, and snippets.

@thelebster
Forked from szeidler/drupal-git-patch.sh
Created October 22, 2016 05:45
Show Gist options
  • Select an option

  • Save thelebster/75c05f6d880d725f0ea06bc05e6f4361 to your computer and use it in GitHub Desktop.

Select an option

Save thelebster/75c05f6d880d725f0ea06bc05e6f4361 to your computer and use it in GitHub Desktop.
Drupal git patch
# Normal patch.
git diff 7.x-1.x > [project_name]-[short-description]-[issue-number]-[comment-number].patch
# Interdiff patch.
git diff old_patch_branch > interdiff-[issue-number]-[old-patch-comment-number]-[comment-number].diff
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment