nvie / gitflow

Git extensions to provide high-level repository operations for Vincent Driessen's branching model.
http://nvie.com/posts/a-successful-git-branching-model/
Other
26.63k stars 2.66k forks source link

patch command #6376

Open ScreamingDev opened 7 years ago

ScreamingDev commented 7 years ago

Hi there,

I have some conceptual idea / established workflow that I like to discuss and really would love to implement just to give something back to git-flow. I started already but before finishing it I like to see if it is wanted / needed.

What is the problem?

There is no flow for creating patches. The following steps need to be done by hand instead of (two) simple php-flow commands:

Also imagine hotfixes that do not get back upon the releases.

What is the solution?

Here is the flow (I like to see):

  1. A not so wild bug appears: git flow patch start 0.2.1
  2. Working
  3. git flow patch finish 0.2.1 (tagging, merging back to release branch and master branch)

Also doing git flow hotfix finish foo-debug could take care of putting changes back into a new patch or existing release branch. Otherwise versioning would be a mess.

patch command strategy

Calling patch start a.b.c would mean:

Calling patch finish a.b.c would mean:

Missing parts

My workflow is a bit deeper than that and I need to bring up this scenario:

This is way to complex for git flow to handle I can imagine. But having a patch also in another branch is an issue which is not yet resolved by the git flow patch command.