Skip to content
Snippets Groups Projects
Commit decfe342 authored by Scott Lahteine's avatar Scott Lahteine
Browse files

Helper script updates

parent b9612518
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/env bash
#
# mfadd
# mfadd (user|ref) [copyname]
#
# Add a remote and fetch it. Optionally copy a branch.
#
# Example: mfadd myfork:patch-1 copy_of_patch-1
#
[[ $# > 0 && $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` (user | ref copyname)" 1>&2 ; exit 1; }
[[ $# > 0 && $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` (user|ref) [copyname]" 1>&2 ; exit 1; }
# If a colon is included, split the parts
if [[ $1 =~ ":" ]]; then
......
#!/usr/bin/env bash
#
# mffp
# mffp [1|2] [commit-id]
#
# Push the given commit (or HEAD) upstream immediately.
# By default: `git push upstream HEAD:bugfix-1.1.x`
......
#!/usr/bin/env bash
#
# mfpr
# mfpr [1|2]
#
# Make a PR of the current branch against RCBugFix or dev
# Make a PR against bugfix-1.1.x or bugfix-2.0.x
#
[[ $# < 2 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [branch]" 1>&2 ; exit 1; }
......
#!/usr/bin/env bash
#
# mfqp
# mfqp [-q|--quick] [1|2]
#
# Add all changed files, commit as "patch", do `mfrb` and `git push -f`
#
......@@ -24,7 +24,7 @@ done
[[ ${INFO[4]} =~ [0-9] ]] && USAGE=1
[[ $USAGE ]] && { echo "usage: `basename $0` [1|2]" 1>&2 ; exit 1 ; }
[[ $USAGE ]] && { echo "usage: `basename $0` [-hq] [1|2]" 1>&2 ; exit 1 ; }
git add .
git commit -m "patch"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment