mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Added git-apply-branch
This commit is contained in:
parent
834b06e895
commit
897ed16e6b
11
Readme.md
11
Readme.md
|
|
@ -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
3
bin/git-apply-branch
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
git diff ..$1 | git apply
|
||||
Loading…
Reference in a new issue