Skip to content

Commit dfaaf40

Browse files
committed
Fix Proxy naming
1 parent 8de29b3 commit dfaaf40

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

LibGit2Sharp/BranchCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public virtual Branch Add(string name, string committish, bool allowOverwrite =
118118
Ensure.ArgumentNotNullOrEmptyString(name, "name");
119119
Ensure.ArgumentNotNullOrEmptyString(committish, "committish");
120120

121-
using (Proxy.git_branch_create_annotated(repo.Handle, name, committish, allowOverwrite)) { }
121+
using (Proxy.git_branch_create_from_annotated(repo.Handle, name, committish, allowOverwrite)) { }
122122

123123
var branch = this[ShortToLocalName(name)];
124124
return branch;

LibGit2Sharp/Core/Proxy.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public static bool git_blob_is_binary(GitObjectSafeHandle obj)
143143

144144
#region git_branch_
145145

146-
public static ReferenceSafeHandle git_branch_create_annotated(RepositorySafeHandle repo, string branch_name, string targetIdentifier, bool force)
146+
public static ReferenceSafeHandle git_branch_create_from_annotated(RepositorySafeHandle repo, string branch_name, string targetIdentifier, bool force)
147147
{
148148
using (ThreadAffinity())
149149
{
@@ -2472,7 +2472,7 @@ public static void git_repository_set_head_detached(RepositorySafeHandle repo, O
24722472
}
24732473
}
24742474

2475-
public static void git_repository_set_head_detached_annotated(RepositorySafeHandle repo, GitAnnotatedCommitHandle commit)
2475+
public static void git_repository_set_head_detached_from_annotated(RepositorySafeHandle repo, GitAnnotatedCommitHandle commit)
24762476
{
24772477
using (ThreadAffinity())
24782478
{

LibGit2Sharp/ReferenceCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ internal Reference MoveHeadTarget<T>(T target)
290290
{
291291
using (var annotatedCommit = Proxy.git_annotated_commit_from_revspec(repo.Handle, targetIdentifier))
292292
{
293-
Proxy.git_repository_set_head_detached_annotated(repo.Handle, annotatedCommit);
293+
Proxy.git_repository_set_head_detached_from_annotated(repo.Handle, annotatedCommit);
294294
}
295295
}
296296
}

0 commit comments

Comments
 (0)