@@ -5,6 +5,11 @@ namespace GitVersion.Common;
5
5
6
6
public interface IRepositoryStore
7
7
{
8
+ int UncommittedChangesCount { get ; }
9
+ IBranch Head { get ; }
10
+ IBranchCollection Branches { get ; }
11
+ ITagCollection Tags { get ; }
12
+
8
13
/// <summary>
9
14
/// Find the merge base of the two branches, i.e. the best common ancestor of the two branches' tips.
10
15
/// </summary>
@@ -13,12 +18,14 @@ public interface IRepositoryStore
13
18
ICommit ? FindMergeBase ( ICommit commit , ICommit mainlineTip ) ;
14
19
15
20
ICommit ? GetCurrentCommit ( IBranch currentBranch , string ? commitId , IIgnoreConfiguration ignore ) ;
21
+ ICommit ? GetForwardMerge ( ICommit ? commitToFindCommonBase , ICommit ? findMergeBase ) ;
16
22
17
23
IReadOnlyList < ICommit > GetCommitLog ( ICommit ? baseVersionSource , ICommit currentCommit , IIgnoreConfiguration ignore ) ;
24
+ IReadOnlyList < ICommit > GetCommitsReacheableFromHead ( ICommit ? headCommit , IIgnoreConfiguration ignore ) ;
25
+ IReadOnlyList < ICommit > GetCommitsReacheableFrom ( IGitObject commit , IBranch branch ) ;
18
26
19
27
IBranch GetTargetBranch ( string ? targetBranchName ) ;
20
28
IBranch ? FindBranch ( ReferenceName branchName ) ;
21
- IBranch ? FindBranch ( string branchName ) ;
22
29
23
30
IEnumerable < IBranch > ExcludingBranches ( IEnumerable < IBranch > branchesToExclude ) ;
24
31
IEnumerable < IBranch > GetBranchesContainingCommit ( ICommit commit , IEnumerable < IBranch > ? branches = null , bool onlyTrackedBranches = false ) ;
@@ -31,13 +38,9 @@ public interface IRepositoryStore
31
38
32
39
IEnumerable < BranchCommit > FindCommitBranchesBranchedFrom ( IBranch branch , IGitVersionConfiguration configuration , params IBranch [ ] excludedBranches ) ;
33
40
34
- IEnumerable < BranchCommit > FindCommitBranchesBranchedFrom ( IBranch branch , IGitVersionConfiguration configuration , IEnumerable < IBranch > excludedBranches ) ;
35
-
36
41
IEnumerable < IBranch > GetSourceBranches ( IBranch branch , IGitVersionConfiguration configuration , params IBranch [ ] excludedBranches ) ;
37
42
38
43
IEnumerable < IBranch > GetSourceBranches ( IBranch branch , IGitVersionConfiguration configuration , IEnumerable < IBranch > excludedBranches ) ;
39
44
40
45
bool IsCommitOnBranch ( ICommit ? baseVersionSource , IBranch branch , ICommit firstMatchingCommit ) ;
41
-
42
- int GetNumberOfUncommittedChanges ( ) ;
43
46
}
0 commit comments