Permalink
Browse files

Reduce Core exposure

  • Loading branch information...
1 parent 9f58a19 commit 2bd06300e2c8fe02493657aadc1cd114bc44762a @nulltoken nulltoken committed Apr 2, 2011
@@ -1,6 +1,6 @@
namespace LibGit2Sharp.Core
{
- public enum GitErrorCode
+ internal enum GitErrorCode
{
/** Operation completed successfully. */
GIT_SUCCESS = 0,
@@ -3,7 +3,7 @@
namespace LibGit2Sharp.Core
{
- public class GitObjectTypeMap : Dictionary<Type, GitObjectType>
+ internal class GitObjectTypeMap : Dictionary<Type, GitObjectType>
{
public new GitObjectType this[Type type]
{
@@ -3,7 +3,7 @@
namespace LibGit2Sharp.Core
{
[Flags]
- public enum GitReferenceType
+ internal enum GitReferenceType
{
Invalid = 0,
Oid = 1,
@@ -3,7 +3,7 @@
namespace LibGit2Sharp.Core
{
[StructLayout(LayoutKind.Sequential)]
- public class GitSignature
+ internal class GitSignature
{
public string Name;
public string Email;
@@ -3,7 +3,7 @@
namespace LibGit2Sharp.Core
{
[StructLayout(LayoutKind.Sequential)]
- public class GitTime
+ internal class GitTime
{
public long Time;
public int Offset;
@@ -9,7 +9,7 @@ namespace LibGit2Sharp
/// </summary>
public class GitObject
{
- public static GitObjectTypeMap TypeToTypeMap =
+ internal static GitObjectTypeMap TypeToTypeMap =
new GitObjectTypeMap
{
{typeof (Commit), GitObjectType.Commit},
@@ -19,7 +19,7 @@ public abstract class Reference
/// <summary>
/// Gets the type of this reference.
/// </summary>
- public GitReferenceType Type { get; private set; }
+ internal GitReferenceType Type { get; private set; }
internal static Reference CreateFromPtr(IntPtr ptr, Repository repo)
{

0 comments on commit 2bd0630

Please sign in to comment.