Skip to content

Commit abdcc6c

Browse files
committed
Update error codes
1 parent 1198d2a commit abdcc6c

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

LibGit2Sharp/Core/GitErrorCode.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,24 @@ internal enum GitErrorCode
2525
/// </summary>
2626
Buffer = -6,
2727

28+
/// <summary>
29+
/// Callback error.
30+
/// </summary>
31+
User = -7,
32+
33+
/// <summary>
34+
/// Operation cannot be performed against a bare repository.
35+
/// </summary>
36+
BareRepo = -8,
37+
2838
/// <summary>
2939
/// Skip and passthrough the given ODB backend.
3040
/// </summary>
3141
PassThrough = -30,
3242

3343
/// <summary>
34-
/// The revision walker is empty; there are no more commits left to iterate.
44+
/// There are no more entries left to iterate.
3545
/// </summary>
36-
RevWalkOver = -31,
46+
IterOver = -31,
3747
}
3848
}

LibGit2Sharp/Core/Proxy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@ public static ObjectId git_revwalk_next(RevWalkerSafeHandle walker)
12691269
GitOid ret;
12701270
int res = NativeMethods.git_revwalk_next(out ret, walker);
12711271

1272-
if (res == (int)GitErrorCode.RevWalkOver)
1272+
if (res == (int)GitErrorCode.IterOver)
12731273
{
12741274
return null;
12751275
}

0 commit comments

Comments
 (0)