为什么git flow会快速转发我的功能分支合并?

为什么git flow会快速转发我的功能分支合并?,git,git-flow,Git,Git Flow,我开始使用和学习git flow。通过阅读本文,它指出每个功能分支合并都将使用--no ff参数来git merge,考虑到功能分支的用途,这是非常有意义的 问题是,我正在一个空的回购中测试git流,我不明白为什么使用命令git flow feature finish“feature name”从功能分支进行的合并总是使用快进 我无法想象为什么要快速推进功能分支。我在这里遗漏了什么吗?有一种情况,git-flow没有使用——没有ff确实: : 应该是: By design, git-flow u

我开始使用和学习git flow。通过阅读本文,它指出每个功能分支合并都将使用--no ff参数来
git merge
,考虑到功能分支的用途,这是非常有意义的

问题是,我正在一个空的回购中测试git流,我不明白为什么使用命令
git flow feature finish“feature name”
从功能分支进行的合并总是使用快进


我无法想象为什么要快速推进功能分支。我在这里遗漏了什么吗?

有一种情况,
git-flow
没有使用
——没有ff
确实:
:

应该是:

By design, git-flow uses the --no-ff option when merging  
in order to record that the commits belong together historically. 
However, when the feature branch contains only a single commit,
the extra merge commit does not add anything and only complicates 
the branch tree needlessly.
So for single-commit branches, fast-forward merges are being made 
as if the commit was done on develop directly.
if [ "$(git rev-list -n2 "$DEVELOP_BRANCH..$BRANCH" | wc -l)" -eq 1 ]; then
    git_do merge --ff "$BRANCH"