diff options
author | nulltoken <emeric.fermas@gmail.com> | 2011-04-30 14:36:14 +0400 |
---|---|---|
committer | nulltoken <emeric.fermas@gmail.com> | 2011-04-30 15:11:34 +0400 |
commit | bc28eb439e40fdd6782e58290adfb4bf2383c8b2 (patch) | |
tree | 4108cdb70ff577275a6c4e62ba3702db3fcfc670 /LibGit2Sharp/TagCollection.cs | |
parent | 93e2ea8fe187dc42852766d60166ba7a1cb7976f (diff) |
Reduce API exposure
Diffstat (limited to 'LibGit2Sharp/TagCollection.cs')
-rw-r--r-- | LibGit2Sharp/TagCollection.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/LibGit2Sharp/TagCollection.cs b/LibGit2Sharp/TagCollection.cs index ec959c8e..5247a080 100644 --- a/LibGit2Sharp/TagCollection.cs +++ b/LibGit2Sharp/TagCollection.cs @@ -17,7 +17,7 @@ namespace LibGit2Sharp /// Initializes a new instance of the <see cref = "TagCollection" /> class. /// </summary> /// <param name = "repo">The repo.</param> - public TagCollection(Repository repo) + internal TagCollection(Repository repo) { this.repo = repo; } @@ -95,7 +95,7 @@ namespace LibGit2Sharp GitObject objectToTag = RetrieveObjectToTag(target); - repo.Refs.Create(NormalizeToCanonicalName(name), objectToTag.Id.Sha); //TODO: To be replaced by native libgit2 tag_create_lightweight() when available. + repo.Refs.Create(NormalizeToCanonicalName(name), objectToTag.Id.Sha); //TODO: To be replaced by native libgit2 git_tag_create_lightweight() when available. return this[name]; } @@ -108,7 +108,7 @@ namespace LibGit2Sharp { Ensure.ArgumentNotNullOrEmptyString(name, "name"); - repo.Refs.Delete(this[name].CanonicalName); + repo.Refs.Delete(this[name].CanonicalName); //TODO: To be replaced by native libgit2 git_tag_delete() when available. } private GitObject RetrieveObjectToTag(string target) |