Skip to content

Commit 2bd0630

Browse files
committed
Reduce Core exposure
1 parent 9f58a19 commit 2bd0630

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

LibGit2Sharp/Core/GitErrorCode.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
namespace LibGit2Sharp.Core
22
{
3-
public enum GitErrorCode
3+
internal enum GitErrorCode
44
{
55
/** Operation completed successfully. */
66
GIT_SUCCESS = 0,

LibGit2Sharp/Core/GitObjectTypeMap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
namespace LibGit2Sharp.Core
55
{
6-
public class GitObjectTypeMap : Dictionary<Type, GitObjectType>
6+
internal class GitObjectTypeMap : Dictionary<Type, GitObjectType>
77
{
88
public new GitObjectType this[Type type]
99
{

LibGit2Sharp/Core/GitReferenceType.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace LibGit2Sharp.Core
44
{
55
[Flags]
6-
public enum GitReferenceType
6+
internal enum GitReferenceType
77
{
88
Invalid = 0,
99
Oid = 1,

LibGit2Sharp/Core/GitSignature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace LibGit2Sharp.Core
44
{
55
[StructLayout(LayoutKind.Sequential)]
6-
public class GitSignature
6+
internal class GitSignature
77
{
88
public string Name;
99
public string Email;

LibGit2Sharp/Core/GitTime.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace LibGit2Sharp.Core
44
{
55
[StructLayout(LayoutKind.Sequential)]
6-
public class GitTime
6+
internal class GitTime
77
{
88
public long Time;
99
public int Offset;

LibGit2Sharp/GitObject.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ namespace LibGit2Sharp
99
/// </summary>
1010
public class GitObject
1111
{
12-
public static GitObjectTypeMap TypeToTypeMap =
12+
internal static GitObjectTypeMap TypeToTypeMap =
1313
new GitObjectTypeMap
1414
{
1515
{typeof (Commit), GitObjectType.Commit},

LibGit2Sharp/Reference.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public abstract class Reference
1919
/// <summary>
2020
/// Gets the type of this reference.
2121
/// </summary>
22-
public GitReferenceType Type { get; private set; }
22+
internal GitReferenceType Type { get; private set; }
2323

2424
internal static Reference CreateFromPtr(IntPtr ptr, Repository repo)
2525
{

0 commit comments

Comments
 (0)