Added git-apply-branch

This commit is contained in:
Tj Holowaychuk 2011-08-25 11:45:17 -07:00
parent 834b06e895
commit 897ed16e6b
2 changed files with 14 additions and 0 deletions

View file

@ -26,6 +26,7 @@ Brew (buggy):
- git pull-request
- git count
- git create-branch
- git apply-branch
- git delete-branch
- git delete-submodule
- git delete-tag
@ -125,6 +126,16 @@ of commits included in the commitish:
$ git summary v42..
## git-apply-branch <name>
Applies the diff of the given branch `name`:
$ git apply-branch mybranch
Effectively a shortcut for:
$ git diff ..mybranch | git apply
## git-repl
GIT read-eval-print-loop:

3
bin/git-apply-branch Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
git diff ..$1 | git apply