Safer branching
blog.bitbucket.org
Safer branching
1–10 of 12 posts
Re: Safer branching
#2My command line git workflow should not require working through a GUI.
Now, if this was added as some git hooks, enforcing the policy from both the command line and GUI then I'd be impressed (and excited).
Re: Safer branching
#3Nope. My command line git workflow should not require working through a GUI. Now, if this was added as some git hooks, enforcing the policy from both the command line and GUI then I'd be impressed (and excited).
Re: Safer branching
#4Nope. My command line git workflow should not require working through a GUI. Now, if this was added as some git hooks, enforcing the policy from both the command line and GUI then I'd be impressed (and excited).
https://bitbucket.org/tpettersen/bitbucket-build-status-hook
That way if I update master before starting on a new feature, I get a notification if the tip of master is broken (or still building).
Re: Safer branching
#5Re: Safer branching
#6If your company is large enough that somebody can be stuck on a problem somebody else knows the answer to (i.e. pretty much any company with more than ~10 people), you should not be committing directly to master. All commits should be submitted via a pull request that passes your CI and code review (and ideally QA review too) before being merged to master.
However even in a strict branching workflow, there's still a chance you'll have genuine integration failures when two branches are merged, even if they independently pass the tests.
Re: Safer branching
#7Re: Safer branching
#8Nope. My command line git workflow should not require working through a GUI. Now, if this was added as some git hooks, enforcing the policy from both the command line and GUI then I'd be impressed (and excited).
Re: Safer branching
#9So, instead of branching from trunk I would branch from tests-pass and that would be guaranteed to have been tested and pass, e.g.,:
$ fossil branch new my-new-feature tests-pass
I even added some CSS to make this look fancy: http://www.rkeene.org/viewer/tmp/fossil-with-tests.png.htm
Re: Safer branching
#10If your company is large enough that somebody can be stuck on a problem somebody else knows the answer to (i.e. pretty much any company with more than ~10 people), you should not be committing directly to master. All commits should be submitted via a pull request that passes your CI and code review (and ideally QA review too) before being merged to master.