Skip to content

Instantly share code, notes, and snippets.

@jtdp
Last active July 7, 2025 19:33
Show Gist options
  • Save jtdp/5443498 to your computer and use it in GitHub Desktop.
Save jtdp/5443498 to your computer and use it in GitHub Desktop.

Revisions

  1. jtdp revised this gist Apr 23, 2013. No changes.
  2. jtdp created this gist Apr 23, 2013.
    4 changes: 4 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    git diff -p \
    | grep -E '^(diff|old mode|new mode)' \
    | sed -e 's/^old/NEW/;s/^new/old/;s/^NEW/new/' \
    | git apply