diff .gitconfig @ 336:b27ea86a9c9e

alias to make patch
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 19 Jun 2013 09:59:02 -0700
parents f8ef5a974df8
children 1b6d7be776ca
line wrap: on
line diff
--- a/.gitconfig	Mon Jun 17 23:47:14 2013 -0700
+++ b/.gitconfig	Wed Jun 19 09:59:02 2013 -0700
@@ -5,7 +5,9 @@
 	email = jhammel@mozilla.com
 [alias]
         branches = branch -a
+        branchname = git rev-parse --abbrev-ref HEAD
         discard = reset HEAD --hard
+        patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff
         root = rev-parse --show-toplevel
         st = status
-        up = !git pull mozilla master && git push origin master
\ No newline at end of file
+        up = !git pull mozilla master && git push origin master