Repository navigation
Replies: 2 comments 4 replies
|
As a note example uses the following helpers (non-important) private static Result1 MyAssertFullSemver(RepositoryFixtureBase fixture, string expectedFullSemver,
IGitVersionConfiguration configuration)
{
var variables = fixture.GetVersion(configuration);
if (!string.IsNullOrEmpty(expectedFullSemver))
{
variables.FullSemVer.ShouldBe(expectedFullSemver);
}
fixture.SequenceDiagram.NoteOver(variables.FullSemVer, fixture.Repository.Head.FriendlyName, color: "#D3D3D3");
return new Result1(variables);
}
private class Result1(GitVersionVariables variables)
{
public Result2 WithIdenticalVersionSource()
{
variables.VersionSourceSha.ShouldBe(variables.Sha);
return new Result2(variables);
}
public Result2 WithVersionSourceSemver(string versionSourceSemVer)
{
variables.VersionSourceSemVer.ShouldBe(versionSourceSemVer);
return new Result2(variables);
}
}
private class Result2(GitVersionVariables variables)
{
public void AndVersionSourceDistance(string versionSourceDistance) =>
variables.VersionSourceDistance.ShouldBe(versionSourceDistance);
} |
4 replies
The tag 1.0.1 is not part of the history of the develop branch in your example. In my opinion, you need to merge the merge commit back into develop so that the tag becomes part of its history. You have three options:
Does this make sense to you? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have written this scenario
That can be visualized in mermaid as
Or in a handwritten commit graph as
On the 2 commits with squares surrounding the "merge-commit dots" on dev (develop) branch (see handwritten commit graph picture), I would like to know if the distance is calculated from the merge-base between the HEAD and the CommitCountSourceSha (the anchor, aka version source)?
(the 2 questions are repeated in the C# source code above in comments marked
// Q: ....Thanks in advance
All reactions