gitflow icon indicating copy to clipboard operation
gitflow copied to clipboard

Unsupervised release finish (automatic merge messages)

Open ghost opened this issue 12 years ago • 4 comments

Currently release finish, while accepting a message for the tag, will still bring up $EDITOR for the merge into master and develop respectively. This makes it a hassle to release finish in a build script. Since I don't think there's a need for custom messages here (in fact I'd discourage them), I simply added a fixed message in each case.

ghost avatar Dec 09 '12 12:12 ghost

Instead of this patch you can just set an environment variable:

export GIT_MERGE_AUTOEDIT=no

No editor will be brought up on merging.

petervanderdoes avatar Dec 10 '12 03:12 petervanderdoes

I'm aware of this, but think it should be enforced inside git flow...

ghost avatar Dec 26 '12 16:12 ghost

You could add the export of the variable in git-flow and your are all set, for example after https://github.com/nvie/gitflow/blob/develop/git-flow#L41 you can add export GIT_MERGE_AUTOEDIT=no and it's enforced in git-flow.

In my fork, git-flow (AVH Edition), you can set this in a file that will be imported by git-flow (see petervanderdoes/gitflow/issues/39)

Note Any updates made to git-flow (AVH Edition) are almost impossible to make into easy pull requests for the original git-flow. The source code of the fork has diverged to much to make this an easy process and therefor we won't.

petervanderdoes avatar Dec 26 '12 20:12 petervanderdoes

Also need this feature

chenjianjx avatar Jan 06 '21 07:01 chenjianjx