File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ using System ;
2
+ using LibGit2Sharp . Core . Handles ;
3
+
4
+ namespace LibGit2Sharp . Core
5
+ {
6
+ internal class SubmoduleLazyGroup : LazyGroup < SubmoduleSafeHandle >
7
+ {
8
+ private readonly string name ;
9
+
10
+ public SubmoduleLazyGroup ( Repository repo , string name )
11
+ : base ( repo )
12
+ {
13
+ this . name = name ;
14
+ }
15
+
16
+ protected override void EvaluateInternal ( Action < SubmoduleSafeHandle > evaluator )
17
+ {
18
+ using ( var handle = Proxy . git_submodule_lookup ( repo . Handle , name ) )
19
+ {
20
+ evaluator ( handle ) ;
21
+ }
22
+ }
23
+ }
24
+ }
Original file line number Diff line number Diff line change 72
72
<Compile Include =" Core\Handles\GitFetchSpecHandle.cs" />
73
73
<Compile Include =" Core\PathCase.cs" />
74
74
<Compile Include =" Core\Handles\SubmoduleSafeHandle.cs" />
75
+ <Compile Include =" Core\SubmoduleLazyGroup.cs" />
75
76
<Compile Include =" Network.cs" />
76
77
<Compile Include =" Core\GitRemoteHead.cs" />
77
78
<Compile Include =" Stash.cs" />
You can’t perform that action at this time.
0 commit comments