comparison bin/git-rebase.sh @ 785:205dd903e4c8

add some mediocre workflow
author Jeff Hammel <k0scist@gmail.com>
date Mon, 12 Sep 2016 14:11:49 -0700
parents
children
comparison
equal deleted inserted replaced
784:47a434dd5068 785:205dd903e4c8
1 #!/bin/bash
2 export BRANCH=$(git branch | grep \* | cut -d ' ' -f2)
3 export PATCH=$(mktemp --suffix .diff)
4 echo Patch at $PATCH
5 git diff $(git merge-base HEAD master) > ${PATCH}
6 cd `git rev-parse --show-toplevel`
7 patch -p1 < ${PATCH}