Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 0d3a4974fa
Fetching contributors…

Cannot retrieve contributors at this time

executable file 12 lines (6 sloc) 0.307 kB
#!/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
Jump to Line
Something went wrong with that request. Please try again.