Skip to content

Instantly share code, notes, and snippets.

View galak-fyyar's full-sized avatar
🍊

Anatoliy Sokolenko galak-fyyar

🍊
View GitHub Profile
#!/bin/bash
function usage {
echo "USAGE: git merge-svn <from> [<to>]"
echo ""
echo " from The branch name to be merged FROM"
echo " to Optional branch name to be merged onto. Default: HEAD"
echo ""
}
#!/bin/bash
set -e
#receipt http://stackoverflow.com/questions/14062895/bash-argument-case-for-args-in/14063511#14063511
while [[ $# -gt 0 ]] && [[ ."$1" = .--* ]]; do
optname="$1";
shift; #expose next argument
case "$optname" in