File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ Manage bundle and migrations automatically while you use git!
66For example:
77
88- If you pull down code from your remote and there are new or updated gems
9- * it will run ` bundle ` for you
9+ * it will run ` bundle ` for you
1010- If you checkout a branch that uses a different set of migrations
11- * it will roll back the old set and apply the new ones
11+ * it will roll back the old set and apply the new ones
1212- If you rebase and there are new gems and migrations
13- * it will run ` bundle ` and ` rake db:migrate test:prepare `
13+ * it will run ` bundle ` and ` rake db:migrate test:prepare `
1414- If you don't like automagical git hooks
15- * run ` git_rails ` and it will try and find out where you came from and run the same check
15+ * run ` git_rails ` and it will try and find out where you came from and run the same check
1616
1717### Install
1818
Original file line number Diff line number Diff line change 22
33function help {
44 echo -e " \nUsage:"
5- echo -e " \tgit-rails [-d] [-v] [-y] [old_ref ] [new_ref ]"
5+ echo -e " \tgit-rails [-d] [-v] [-y] [src_ref ] [dest_ref ]"
66 echo -e " \tgit-rails -h"
77 echo " Flags:"
88 echo -e " \t-d\tdry-run: display pending changes and exit"
99 echo -e " \t-v\tverbose: display pending changes, prompt to continue, display command output"
1010 echo -e " \t-y\tauto-confirm: in verbose mode, apply pending changes without prompting"
1111 echo
12+ echo -e " \tsrc_ref\t\tBranch/ref you're coming from; defaults to ORIG_HEAD"
13+ echo
14+ echo -e " \tdest_ref\tBranch/ref you're ending at; defaults to HEAD"
15+ echo -e " \t\t\tUse with care; see README for more details"
16+ echo
17+ echo -e " Web: https://github.com/jfouse/git-rails"
18+ echo
1219 exit 0
1320}
1421
You can’t perform that action at this time.
0 commit comments