Mercurial > hg > config
changeset 785:205dd903e4c8
add some mediocre workflow
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 12 Sep 2016 14:11:49 -0700 |
parents | 47a434dd5068 |
children | caaba8341045 |
files | bin/git-rebase.sh |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/bin/git-rebase.sh Mon Sep 12 14:11:49 2016 -0700 @@ -0,0 +1,7 @@ +#!/bin/bash +export BRANCH=$(git branch | grep \* | cut -d ' ' -f2) +export PATCH=$(mktemp --suffix .diff) +echo Patch at $PATCH +git diff $(git merge-base HEAD master) > ${PATCH} +cd `git rev-parse --show-toplevel` +patch -p1 < ${PATCH}