diff options
author | Keith Dahlby <dahlbyk@gmail.com> | 2013-04-14 07:55:03 +0400 |
---|---|---|
committer | Keith Dahlby <dahlbyk@gmail.com> | 2013-04-25 00:08:48 +0400 |
commit | 9a7b31d36a4c6d24c8ec4a90165dee5f0be938e1 (patch) | |
tree | 933055555749f5731ed30edf149b96a978250a81 /LibGit2Sharp/Submodule.cs | |
parent | da2a8d37a85b7ee3b5852504cdd291a99dca9d9a (diff) |
OCD: Head > Index > WorkDir
Diffstat (limited to 'LibGit2Sharp/Submodule.cs')
-rw-r--r-- | LibGit2Sharp/Submodule.cs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/LibGit2Sharp/Submodule.cs b/LibGit2Sharp/Submodule.cs index 59dfa536..f528d3da 100644 --- a/LibGit2Sharp/Submodule.cs +++ b/LibGit2Sharp/Submodule.cs @@ -18,8 +18,8 @@ namespace LibGit2Sharp private readonly string name; private readonly string path; private readonly string url; - private readonly ILazy<ObjectId> indexCommitId; private readonly ILazy<ObjectId> headCommitId; + private readonly ILazy<ObjectId> indexCommitId; private readonly ILazy<ObjectId> workdirCommitId; private readonly ILazy<bool> fetchRecurseSubmodulesRule; private readonly ILazy<SubmoduleIgnore> ignoreRule; @@ -39,8 +39,8 @@ namespace LibGit2Sharp this.url = url; var commitIds = new SubmoduleLazyGroup(repo, name); - indexCommitId = commitIds.AddLazy(Proxy.git_submodule_index_id); headCommitId = commitIds.AddLazy(Proxy.git_submodule_head_id); + indexCommitId = commitIds.AddLazy(Proxy.git_submodule_index_id); workdirCommitId = commitIds.AddLazy(Proxy.git_submodule_wd_id); var rules = new SubmoduleLazyGroup(repo, name); @@ -65,14 +65,14 @@ namespace LibGit2Sharp public virtual string Url { get { return url; } } /// <summary> - /// The commit ID for this submodule in the index. + /// The commit ID for this submodule in the current HEAD tree. /// </summary> - public virtual ObjectId IndexCommitId { get { return indexCommitId.Value; } } + public virtual ObjectId HeadCommitId { get { return headCommitId.Value; } } /// <summary> - /// The commit ID for this submodule in the current HEAD tree. + /// The commit ID for this submodule in the index. /// </summary> - public virtual ObjectId HeadCommitId { get { return headCommitId.Value; } } + public virtual ObjectId IndexCommitId { get { return indexCommitId.Value; } } /// <summary> /// The commit ID for this submodule in the current working directory. |