Skip to content

Commit f00fc03

Browse files
committed
tweaks to usage message
1 parent bc2e1ef commit f00fc03

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ Manage bundle and migrations automatically while you use git!
66
For 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

bin/git_rails

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22

33
function 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

0 commit comments

Comments
 (0)