@@ -18,8 +18,8 @@ public class Submodule : IEquatable<Submodule>
18
18
private readonly string name ;
19
19
private readonly string path ;
20
20
private readonly string url ;
21
- private readonly ILazy < ObjectId > indexCommitId ;
22
21
private readonly ILazy < ObjectId > headCommitId ;
22
+ private readonly ILazy < ObjectId > indexCommitId ;
23
23
private readonly ILazy < ObjectId > workdirCommitId ;
24
24
private readonly ILazy < bool > fetchRecurseSubmodulesRule ;
25
25
private readonly ILazy < SubmoduleIgnore > ignoreRule ;
@@ -39,8 +39,8 @@ internal Submodule(Repository repo, string name, string path, string url)
39
39
this . url = url ;
40
40
41
41
var commitIds = new SubmoduleLazyGroup ( repo , name ) ;
42
- indexCommitId = commitIds . AddLazy ( Proxy . git_submodule_index_id ) ;
43
42
headCommitId = commitIds . AddLazy ( Proxy . git_submodule_head_id ) ;
43
+ indexCommitId = commitIds . AddLazy ( Proxy . git_submodule_index_id ) ;
44
44
workdirCommitId = commitIds . AddLazy ( Proxy . git_submodule_wd_id ) ;
45
45
46
46
var rules = new SubmoduleLazyGroup ( repo , name ) ;
@@ -65,14 +65,14 @@ internal Submodule(Repository repo, string name, string path, string url)
65
65
public virtual string Url { get { return url ; } }
66
66
67
67
/// <summary>
68
- /// The commit ID for this submodule in the index .
68
+ /// The commit ID for this submodule in the current HEAD tree .
69
69
/// </summary>
70
- public virtual ObjectId IndexCommitId { get { return indexCommitId . Value ; } }
70
+ public virtual ObjectId HeadCommitId { get { return headCommitId . Value ; } }
71
71
72
72
/// <summary>
73
- /// The commit ID for this submodule in the current HEAD tree .
73
+ /// The commit ID for this submodule in the index .
74
74
/// </summary>
75
- public virtual ObjectId HeadCommitId { get { return headCommitId . Value ; } }
75
+ public virtual ObjectId IndexCommitId { get { return indexCommitId . Value ; } }
76
76
77
77
/// <summary>
78
78
/// The commit ID for this submodule in the current working directory.
0 commit comments