我有一个分支,我们称之为 features/feature_1
自从它从 master 分支以来,它有 5 次提交。它的“增量”策略设置为无。如果我结帐大师,它是版本 3.18.1
如果我签出 features/feature_1,它的版本是 3.5.1。
我猜这是因为自从它从 master 分支以来已经发生了 5 次提交,但这没有任何意义。增量策略是“none”,所以它应该是 3.18.1,和它的源一样。
这里发生了什么?
编辑:我尝试了另一个实验。如果我 checkout -b from master
,我只会得到 3.5.1 版本。没有任何新的提交。这是master
获得版本 3.18.1 的时间。我无法调和这是怎么可能的。
assembly-versioning-scheme: MajorMinor
assembly-file-versioning-scheme: MajorMinor
mode: mainline
tag-prefix: '[vV]'
continuous-delivery-fallback-tag: ci
major-version-bump-message: '\+semver:\s?(breaking|major)'
minor-version-bump-message: '\+semver:\s?(feature|minor)'
no-bump-message: '\+semver:\s?(none|skip)'
legacy-semver-padding: 4
build-metadata-padding: 4
commits-since-version-source-padding: 4
commit-message-incrementing: Enabled
branches:
master:
tag: ''
increment: Minor
prevent-increment-of-merged-branch-version: true
track-merge-target: false
regex: ^master$
source-branches:
- develop
- release
tracks-release-branches: false
is-release-branch: true
is-mainline: true
pre-release-weight: 55000
feature:
tag: useBranchName
increment: None
prevent-increment-of-merged-branch-version: false
track-merge-target: false
regex: ^features?[/-]
source-branches:
- master
- feature
tracks-release-branches: false
is-release-branch: false
is-mainline: false
pre-release-weight: 30000
hotfix:
tag: beta
increment: None
prevent-increment-of-merged-branch-version: false
track-merge-target: false
regex: ^hotfix(es)?[/-]
source-branches:
- master
- feature
tracks-release-branches: false
is-release-branch: false
is-mainline: false
pre-release-weight: 30000
ignore:
sha: []
commit-date-format: yyyy-MM-dd
merge-message-formats: {}