Skip to content

Instantly share code, notes, and snippets.

@tracdi
Forked from jtdp/gist:5443498
Last active May 14, 2019 07:17
Show Gist options
  • Select an option

  • Save tracdi/55d6309bda1f70a178b9ba0b18c05aeb to your computer and use it in GitHub Desktop.

Select an option

Save tracdi/55d6309bda1f70a178b9ba0b18c05aeb to your computer and use it in GitHub Desktop.

Revisions

  1. tv1604 revised this gist May 14, 2019. No changes.
  2. @jtdp jtdp revised this gist Apr 23, 2013. No changes.
  3. @jtdp 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