Skip to content
Find file
6858c4b Jun 30, 2008
executable file 12 lines (6 sloc) 307 Bytes
#!/bin/sh
CURRENT_BRANCH=$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "$(git branch | grep '^*' |sed s/\*\ //)"; fi)
CURRENT_DIR=$(basename $(pwd))
PATCH_DIR="${HOME}/Documents/Patches/${CURRENT_DIR}"
mkdir -p ${PATCH_DIR}
git format-patch master --stdout > ${PATCH_DIR}/${CURRENT_BRANCH}.diff
Something went wrong with that request. Please try again.