Skip to content

Commit 3f9b415

Browse files
authored
Merge pull request #1361 from txdv/remove-console-writeline
Remove debugging code from main library code.
2 parents f12a329 + 28135b0 commit 3f9b415

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

LibGit2Sharp/Commands/Checkout.cs

-5
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,14 @@ public static Branch Checkout(IRepository repository, string committishOrBranchS
4040
Reference reference;
4141
GitObject obj;
4242

43-
Console.WriteLine("revparsing {0}", committishOrBranchSpec);
4443
repository.RevParse(committishOrBranchSpec, out reference, out obj);
45-
Console.WriteLine("grabbed ref {0}, obj {1}", reference, obj);
4644
if (reference != null && reference.IsLocalBranch)
4745
{
4846
Branch branch = repository.Branches[reference.CanonicalName];
49-
Console.WriteLine("grabbed branch {0}", branch);
5047
return Checkout(repository, branch, options);
5148
}
5249

5350
Commit commit = obj.DereferenceToCommit(true);
54-
Console.WriteLine("dereferenced to commit {0}", commit);
5551
Checkout(repository, commit.Tree, options, committishOrBranchSpec);
5652

5753
return repository.Head;
@@ -92,7 +88,6 @@ public static Branch Checkout(IRepository repository, Branch branch, CheckoutOpt
9288
branch.FriendlyName);
9389
}
9490

95-
Console.WriteLine("branch: {0}", branch);
9691
if (!branch.IsRemote && !(branch is DetachedHead) &&
9792
string.Equals(repository.Refs[branch.CanonicalName].TargetIdentifier, branch.Tip.Id.Sha,
9893
StringComparison.OrdinalIgnoreCase))

LibGit2Sharp/Core/Proxy.cs

-1
Original file line numberDiff line numberDiff line change
@@ -3016,7 +3016,6 @@ public static unsafe ObjectId git_submodule_index_id(SubmoduleHandle submodule)
30163016

30173017
public static unsafe ObjectId git_submodule_head_id(SubmoduleHandle submodule)
30183018
{
3019-
Console.WriteLine("got git_oid for head {0}", NativeMethods.git_submodule_head_id(submodule) == null);
30203019
return ObjectId.BuildFromPtr(NativeMethods.git_submodule_head_id(submodule));
30213020
}
30223021

0 commit comments

Comments
 (0)