Skip to content

Commit a0d8163

Browse files
Alexander OvchinnikovMarcellvanRooyen
Alexander Ovchinnikov
andcommitted
Make GitErrorCategory and GitErrorCode public
Move them to LibGit2Sharp namespace to satisfy tests Co-authored-by: Marcell van Rooyen <[email protected]>
1 parent e66c642 commit a0d8163

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

LibGit2Sharp/Core/GitErrorCategory.cs

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
namespace LibGit2Sharp.Core
1+
namespace LibGit2Sharp
22
{
3-
internal enum GitErrorCategory
3+
public enum GitErrorCategory
44
{
55
Unknown = -1,
66
None,
@@ -36,6 +36,8 @@ internal enum GitErrorCategory
3636
Filesystem,
3737
Patch,
3838
Worktree,
39-
Sha1
39+
Sha1,
40+
Http,
41+
Internal
4042
}
4143
}

LibGit2Sharp/Core/GitErrorCode.cs

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,18 @@
1-
namespace LibGit2Sharp.Core
1+
namespace LibGit2Sharp
22
{
3-
internal enum GitErrorCode
3+
/// <summary>
4+
/// Git Error Code contains a list of possible error codes returned by LibGit2
5+
/// </summary>
6+
public enum GitErrorCode
47
{
8+
/// <summary>
9+
/// No Error result OK
10+
/// </summary>
511
Ok = 0,
12+
13+
/// <summary>
14+
/// General Error
15+
/// </summary>
616
Error = -1,
717

818
/// <summary>

0 commit comments

Comments
 (0)