Vincent Driessen | 61ade55 | 2010-01-21 01:28:08 +0100 | [diff] [blame^] | 1 | #!/bin/sh |
| 2 | |
| 3 | usage() { |
| 4 | echo "usage: gitflow start hotfix <release>" |
| 5 | echo " gitflow finish hotfix <release>" |
| 6 | } |
| 7 | |
| 8 | start() { |
| 9 | # TODO |
| 10 | gitflow_check_clean_working_tree |
| 11 | echo "git checkout -b hotfix-$RELEASE master" |
| 12 | echo "Bump version number" |
| 13 | echo "Fix bug" |
| 14 | } |
| 15 | |
| 16 | finish() { |
| 17 | # TODO |
| 18 | gitflow_check_clean_working_tree |
| 19 | echo "git checkout master" |
| 20 | echo "git merge --no-ff hotfix-$RELEASE" |
| 21 | echo "git checkout develop" |
| 22 | echo "git merge --no-ff hotfix-$RELEASE" |
| 23 | echo "git branch -d hotfix-$RELEASE" |
| 24 | } |
| 25 | |