Update git helper usage
This commit is contained in:
		| @@ -1,14 +1,14 @@ | ||||
| #!/usr/bin/env bash | ||||
| # | ||||
| # mffp [1|2] [commit-id] | ||||
| # mffp [1|2|3] [commit-id] | ||||
| # | ||||
| # Push the given commit (or HEAD) upstream immediately. | ||||
| # By default: `git push upstream HEAD:bugfix-1.1.x` | ||||
| # | ||||
|  | ||||
| [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [1|2] [commit-id]" 1>&2 ; exit 1; } | ||||
| [[ $# < 3 && $1 != "-h" && $1 != "--help" ]] || { echo "usage: `basename $0` [1|2|3] [commit-id]" 1>&2 ; exit 1; } | ||||
|  | ||||
| if [[ $1 == '1' || $1 == '2' ]]; then | ||||
| if [[ $1 == '1' || $1 == '2' || $1 == '3' ]]; then | ||||
|   MFINFO=$(mfinfo "$1") || exit 1 | ||||
|   REF=${2:-HEAD} | ||||
| else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user