Skip to content

Commit

Permalink
Update the help and README
Browse files Browse the repository at this point in the history
To include info about merge and finish.
  • Loading branch information
danielbeardsley committed Oct 3, 2012
1 parent 5c23ad6 commit b3a2026
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Flow's `master` is our `stable`, and there are no `release` branches and our
`hotfix` branch names all have a prefix.

**master** is the active development branch, and what our development server
has checked out.
has checked out. This is configurable using: `git config
feature.development_branch branch-name`

**stable** is the branch which is deployed on the production machines. You
should always be able to check out this branch and get "bug-free" production
Expand Down Expand Up @@ -67,12 +68,15 @@ from `master` will be created after a confirmation, and runs a
Assuming the branch `your-neato-thing` exists, it checks out that branch and
informs you about any stashes saved on that branch.

feature finish your-neato-thing
feature finish [your-neato-thing]

Creates a pull-request on Github for the current or specified feature branch.

feature merge [your-neato-thing]

Merges the feature branch back in to `master`, using `--no-ff` to ensure it's a
non-fast-forward merge. If the merge is successful, delete the branch - you
shouldn't ever merge in a feature branch twice, and we don't need the extra
cruft lying around.
non-fast-forward merge. This attempts to get a pull request description from
the github API.

feature status

Expand Down Expand Up @@ -102,11 +106,13 @@ name with `hotfix_` allows easy filtering.
Switches hotfix branches. Assuming the branch `hotfix_my-other-fix` exists, it
checks out that branch and informs you about any stashes saved on that branch.

hotfix finish my-other-fix
hotfix finish [my-other-fix]

Creates a pull-request on Github for the current or specified hotfix branch.

hotfix merge [my-other-fix]

Merges the hotfix branch back into `stable` with `--no-ff`. Also does a test
merge back into `master`. If it seems like it will merge cleanly, it does it.
Otherwise bail out. Possibly sendmail the admins or just inform the user that
they need to merge it into master and fix the conflicts.
Merges the hotfix branch back into `stable` with `--no-ff`. Also does a
merge back into `master`.

[gitflow]: http://nvie.com/posts/a-successful-git-branching-model/
4 changes: 3 additions & 1 deletion helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def display_feature_help(command = nil, message = nil)
:start => "feature start name-of-feature",
:switch => "feature switch name-of-feature",
:finish => "feature finish name-of-feature",
:merge => "feature merge [name-of-feature]",
:pull => "feature pull",
:status => "feature status",
:stashes => "feature stashes [-v]",
Expand All @@ -34,7 +35,8 @@ def display_hotfix_help(command = nil, message = nil)
:list => "hotfix list",
:start => "hotfix start name-of-hotfix",
:switch => "hotfix switch name-of-hotfix",
:finish => "hotfix finish name-of-hotfix"
:finish => "hotfix finish [name-of-hotfix]",
:merge => "hotfix merge [name-of-hotfix]"
},
:command_name => 'hotfix',
:command => command,
Expand Down

0 comments on commit b3a2026

Please sign in to comment.