Skip to content

Commit 7feae1d

Browse files
authored
Merge pull request #3451 from arturcic/feature/abstractions
Added GitVersion.Abstractions module
2 parents 83dbf0e + ea49bfa commit 7feae1d

File tree

142 files changed

+1052
-1050
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+1052
-1050
lines changed

new-cli/GitVersion.Common/GitVersion.Common.csproj

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,64 +3,64 @@
33
<PackageReference Include="Polly" />
44
</ItemGroup>
55
<ItemGroup>
6-
<Compile Include="..\..\src\GitVersion.Core\Git\AuthenticationInfo.cs">
6+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\AuthenticationInfo.cs">
77
<Link>Git\AuthenticationInfo.cs</Link>
88
</Compile>
9-
<Compile Include="..\..\src\GitVersion.Core\Git\CommitFilter.cs">
9+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\CommitFilter.cs">
1010
<Link>Git\CommitFilter.cs</Link>
1111
</Compile>
12-
<Compile Include="..\..\src\GitVersion.Core\Git\IBranch.cs">
12+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IBranch.cs">
1313
<Link>Git\IBranch.cs</Link>
1414
</Compile>
15-
<Compile Include="..\..\src\GitVersion.Core\Git\IBranchCollection.cs">
15+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IBranchCollection.cs">
1616
<Link>Git\IBranchCollection.cs</Link>
1717
</Compile>
18-
<Compile Include="..\..\src\GitVersion.Core\Git\ICommit.cs">
18+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\ICommit.cs">
1919
<Link>Git\ICommit.cs</Link>
2020
</Compile>
21-
<Compile Include="..\..\src\GitVersion.Core\Git\ICommitCollection.cs">
21+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\ICommitCollection.cs">
2222
<Link>Git\ICommitCollection.cs</Link>
2323
</Compile>
24-
<Compile Include="..\..\src\GitVersion.Core\Git\IGitObject.cs">
24+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IGitObject.cs">
2525
<Link>Git\IGitObject.cs</Link>
2626
</Compile>
27-
<Compile Include="..\..\src\GitVersion.Core\Git\IGitRepository.cs">
27+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IGitRepository.cs">
2828
<Link>Git\IGitRepository.cs</Link>
2929
</Compile>
30-
<Compile Include="..\..\src\GitVersion.Core\Git\INamedReference.cs">
30+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\INamedReference.cs">
3131
<Link>Git\INamedReference.cs</Link>
3232
</Compile>
33-
<Compile Include="..\..\src\GitVersion.Core\Git\IObjectId.cs">
33+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IObjectId.cs">
3434
<Link>Git\IObjectId.cs</Link>
3535
</Compile>
36-
<Compile Include="..\..\src\GitVersion.Core\Git\IReference.cs">
36+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IReference.cs">
3737
<Link>Git\IReference.cs</Link>
3838
</Compile>
39-
<Compile Include="..\..\src\GitVersion.Core\Git\IReferenceCollection.cs">
39+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IReferenceCollection.cs">
4040
<Link>Git\IReferenceCollection.cs</Link>
4141
</Compile>
42-
<Compile Include="..\..\src\GitVersion.Core\Git\IRefSpec.cs">
42+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IRefSpec.cs">
4343
<Link>Git\IRefSpec.cs</Link>
4444
</Compile>
45-
<Compile Include="..\..\src\GitVersion.Core\Git\IRefSpecCollection.cs">
45+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IRefSpecCollection.cs">
4646
<Link>Git\IRefSpecCollection.cs</Link>
4747
</Compile>
48-
<Compile Include="..\..\src\GitVersion.Core\Git\IRemote.cs">
48+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IRemote.cs">
4949
<Link>Git\IRemote.cs</Link>
5050
</Compile>
51-
<Compile Include="..\..\src\GitVersion.Core\Git\IRemoteCollection.cs">
51+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\IRemoteCollection.cs">
5252
<Link>Git\IRemoteCollection.cs</Link>
5353
</Compile>
54-
<Compile Include="..\..\src\GitVersion.Core\Git\ITag.cs">
54+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\ITag.cs">
5555
<Link>Git\ITag.cs</Link>
5656
</Compile>
57-
<Compile Include="..\..\src\GitVersion.Core\Git\ITagCollection.cs">
57+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\ITagCollection.cs">
5858
<Link>Git\ITagCollection.cs</Link>
5959
</Compile>
60-
<Compile Include="..\..\src\GitVersion.Core\Git\ReferenceName.cs">
60+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\ReferenceName.cs">
6161
<Link>Git\ReferenceName.cs</Link>
6262
</Compile>
63-
<Compile Include="..\..\src\GitVersion.Core\Git\RefSpecDirection.cs">
63+
<Compile Include="..\..\src\GitVersion.Abstractions\Git\RefSpecDirection.cs">
6464
<Link>Git\RefSpecDirection.cs</Link>
6565
</Compile>
6666
</ItemGroup>

src/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
3333

3434
<IsUnitTestProject>false</IsUnitTestProject>
35-
<DisableApiAnalyzers>true</DisableApiAnalyzers>
35+
<DisableApiAnalyzers>false</DisableApiAnalyzers>
3636
<IsUnitTestProject Condition="$(MSBuildProjectName.EndsWith('.Tests')) or $(MSBuildProjectName.EndsWith('.Testing'))">true</IsUnitTestProject>
3737
</PropertyGroup>
3838

src/GitVersion.Core/Agents/BuildAgentBase.cs renamed to src/GitVersion.Abstractions/Agents/BuildAgentBase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ namespace GitVersion.Agents;
77
public abstract class BuildAgentBase : ICurrentBuildAgent
88
{
99
protected readonly ILog Log;
10-
protected IEnvironment Environment { get; }
10+
protected IEnvironment Environment;
1111

1212
protected BuildAgentBase(IEnvironment environment, ILog log)
1313
{
1414
this.Log = log;
15-
Environment = environment;
15+
this.Environment = environment;
1616
}
1717

1818
protected abstract string EnvironmentVariable { get; }

0 commit comments

Comments
 (0)