Skip to content

Commit 92b0922

Browse files
committed
restructures libgit2sharp project
Refactors the project to use globbing for file inclusion. Moves schema and testing projects to misc folder.
1 parent afc5e16 commit 92b0922

File tree

2 files changed

+8
-54
lines changed

2 files changed

+8
-54
lines changed

new-cli/GitVersion.Core.Libgit2Sharp/GitVersion.Core.Libgit2Sharp.csproj

Lines changed: 4 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,61 +5,13 @@
55
</ItemGroup>
66

77
<ItemGroup>
8-
<ProjectReference Include="..\GitVersion.Common\GitVersion.Common.csproj" />
8+
<ProjectReference Include="..\GitVersion.Common\GitVersion.Common.csproj" />
99
</ItemGroup>
1010

1111
<ItemGroup>
12-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\Branch.cs">
13-
<Link>Git\Branch.cs</Link>
14-
</Compile>
15-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\BranchCollection.cs">
16-
<Link>Git\BranchCollection.cs</Link>
17-
</Compile>
18-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\Commit.cs">
19-
<Link>Git\Commit.cs</Link>
20-
</Compile>
21-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\CommitCollection.cs">
22-
<Link>Git\CommitCollection.cs</Link>
23-
</Compile>
24-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\GitObject.cs">
25-
<Link>Git\GitObject.cs</Link>
26-
</Compile>
27-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\GitRepository.cs">
28-
<Link>Git\GitRepository.cs</Link>
29-
</Compile>
30-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\ObjectId.cs">
31-
<Link>Git\ObjectId.cs</Link>
32-
</Compile>
33-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\Reference.cs">
34-
<Link>Git\Reference.cs</Link>
35-
</Compile>
36-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\ReferenceCollection.cs">
37-
<Link>Git\ReferenceCollection.cs</Link>
38-
</Compile>
39-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\RefSpec.cs">
40-
<Link>Git\RefSpec.cs</Link>
41-
</Compile>
42-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\RefSpecCollection.cs">
43-
<Link>Git\RefSpecCollection.cs</Link>
44-
</Compile>
45-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\Remote.cs">
46-
<Link>Git\Remote.cs</Link>
47-
</Compile>
48-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\RemoteCollection.cs">
49-
<Link>Git\RemoteCollection.cs</Link>
50-
</Compile>
51-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\RepositoryExtensions.cs">
52-
<Link>Git\RepositoryExtensions.cs</Link>
53-
</Compile>
54-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\Tag.cs">
55-
<Link>Git\Tag.cs</Link>
56-
</Compile>
57-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\TagCollection.cs">
58-
<Link>Git\TagCollection.cs</Link>
59-
</Compile>
60-
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\TreeChanges.cs">
61-
<Link>Git\TreeChanges.cs</Link>
62-
</Compile>
12+
<Compile Include="..\..\src\GitVersion.LibGit2Sharp\Git\*.cs" Link="Git\%(Filename)%(Extension)" />
13+
<Compile Remove="..\..\src\GitVersion.LibGit2Sharp\Git\GitRepositoryInfo.cs" />
14+
<Compile Remove="..\..\src\GitVersion.LibGit2Sharp\Git\GitRepository.mutating.cs" />
6315
</ItemGroup>
6416

6517
</Project>

src/GitVersion.slnx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<Solution>
2+
<Folder Name="/misc/">
3+
<Project Path="GitVersion.Schema/GitVersion.Schema.csproj" />
4+
<Project Path="GitVersion.Testing/GitVersion.Testing.csproj" />
5+
</Folder>
26
<Folder Name="/modules/">
37
<Project Path="GitVersion.BuildAgents.Tests/GitVersion.BuildAgents.Tests.csproj" />
48
<Project Path="GitVersion.BuildAgents/GitVersion.BuildAgents.csproj" />
@@ -34,6 +38,4 @@
3438
<Project Path="GitVersion.Core/GitVersion.Core.csproj" />
3539
<Project Path="GitVersion.MsBuild.Tests/GitVersion.MsBuild.Tests.csproj" />
3640
<Project Path="GitVersion.MsBuild/GitVersion.MsBuild.csproj" />
37-
<Project Path="GitVersion.Schema/GitVersion.Schema.csproj" />
38-
<Project Path="GitVersion.Testing/GitVersion.Testing.csproj" />
3941
</Solution>

0 commit comments

Comments
 (0)