changeset 336:b27ea86a9c9e

alias to make patch
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 19 Jun 2013 09:59:02 -0700
parents d0f91aad5f84
children 4d5d5097686f
files .gitconfig
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
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