Skip to content

Instantly share code, notes, and snippets.

@Sanne
Created April 26, 2012 17:40
Show Gist options
  • Save Sanne/2501217 to your computer and use it in GitHub Desktop.
Save Sanne/2501217 to your computer and use it in GitHub Desktop.
See differences between current branch and master [other branch]
#!/bin/bash
# Released under the WTFPL license version 2 http://sam.zoy.org/wtfpl/
# Copyright (c) 2012 Sanne Grinovero
if [[ $# -eq 0 ]]; then
rm -f *.patch && git format-patch -M80% -C80% master && gedit -w -s *.patch && rm *.patch
else
rm -f *.patch && git format-patch -M80% -C80% "$@" && gedit -w -s *.patch && rm *.patch
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment