8000 Update libgit2 binaries to 4191d52 · joncham/libgit2sharp@c8ccded · GitHub
[go: up one dir, main page]

Skip to content

Commit c8ccded

Browse files
committed
Update libgit2 binaries to 4191d52
1 parent 8fb8bfb commit c8ccded

File tree

7 files changed

+39
-37
lines changed

7 files changed

+39
-37
lines changed

Lib/git2-0.dll

136 KB
Binary file not shown.

Lib/git2.dll

-146 KB
Binary file not shown.

LibGit2Sharp/Core/GitErrorCode.cs

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,136 +18,136 @@ internal enum GitErrorCode
1818
/// <summary>
1919
/// Input was not a properly formatted Git object id.
2020
/// </summary>
21-
GIT_ENOTOID = (GIT_ERROR - 1),
21+
GIT_ENOTOID = -2,
2222

2323
/// <summary>
2424
/// Input does not exist in the scope searched.
2525
/// </summary>
26-
GIT_ENOTFOUND = (GIT_ERROR - 2),
26+
GIT_ENOTFOUND = -3,
2727

2828
/// <summary>
2929
/// Not enough space available.
3030
/// </summary>
31-
GIT_ENOMEM = (GIT_ERROR - 3),
31+
GIT_ENOMEM = -4,
3232

3333
/// <summary>
3434
/// Consult the OS error information.
3535
/// </summary>
36-
GIT_EOSERR = (GIT_ERROR - 4),
36+
GIT_EOSERR = -5,
3737

3838
/// <summary>
3939
/// The specified object is of invalid type
4040
/// </summary>
41-
GIT_EOBJTYPE = (GIT_ERROR - 5),
42-
43-
/// <summary>
44-
/// The specified object has its data corrupted
45-
/// </summary>
46-
GIT_EOBJCORRUPTED = (GIT_ERROR - 6),
41+
GIT_EOBJTYPE = -6,
4742

4843
/// <summary>
4944
/// The specified repository is invalid
5045
/// </summary>
51-
GIT_ENOTAREPO = (GIT_ERROR - 7),
46+
GIT_ENOTAREPO = -7,
5247

5348
/// <summary>
5449
/// The object type is invalid or doesn't match
5550
/// </summary>
56-
GIT_EINVALIDTYPE = (GIT_ERROR - 8),
51+
GIT_EINVALIDTYPE = -8,
5752

5853
/// <summary>
5954
/// The object cannot be written that because it's missing internal data
6055
/// </summary>
61-
GIT_EMISSINGOBJDATA = (GIT_ERROR - 9),
56+
GIT_EMISSINGOBJDATA = -9,
6257

6358
/// <summary>
6459
/// The packfile for the ODB is corrupted
6560
/// </summary>
66-
GIT_EPACKCORRUPTED = (GIT_ERROR - 10),
61+
GIT_EPACKCORRUPTED = -10,
6762

6863
/// <summary>
6964
/// Failed to adquire or release a file lock
7065
/// </summary>
71-
GIT_EFLOCKFAIL = (GIT_ERROR - 11),
66+
GIT_EFLOCKFAIL = -11,
7267

7368
/// <summary>
7469
/// The Z library failed to inflate/deflate an object's data
7570
/// </summary>
76-
GIT_EZLIB = (GIT_ERROR - 12),
71+
GIT_EZLIB = -12,
7772

7873
/// <summary>
7974
/// The queried object is currently busy
8075
/// </summary>
81-
GIT_EBUSY = (GIT_ERROR - 13),
76+
GIT_EBUSY = -13,
8277

8378
/// <summary>
8479
/// The index file is not backed up by an existing repository
8580
/// </summary>
86-
GIT_EBAREINDEX = (GIT_ERROR - 14),
81+
GIT_EBAREINDEX = -14,
8782

8883
/// <summary>
8984
/// The name of the reference is not valid
9085
/// </summary>
91-
GIT_EINVALIDREFNAME = (GIT_ERROR - 15),
86+
GIT_EINVALIDREFNAME = -15,
9287

9388
/// <summary>
9489
/// The specified reference has its data corrupted
9590
/// </summary>
96-
GIT_EREFCORRUPTED = (GIT_ERROR - 16),
91+
GIT_EREFCORRUPTED = -16,
9792

9893
/// <summary>
9994
/// The specified symbolic reference is too deeply nested
10095
/// </summary>
101-
GIT_ETOONESTEDSYMREF = (GIT_ERROR - 17),
96+
GIT_ETOONESTEDSYMREF = -17,
10297

10398
/// <summary>
10499
/// The pack-refs file is either corrupted of its format is not currently supported
105100
/// </summary>
106-
GIT_EPACKEDREFSCORRUPTED = (GIT_ERROR - 18),
101+
GIT_EPACKEDREFSCORRUPTED = -18,
107102

108103
/// <summary>
109104
/// The path is invalid
110105
/// </summary>
111-
GIT_EINVALIDPATH = (GIT_ERROR - 19),
106+
GIT_EINVALIDPATH = -19,
112107

113108
/// <summary>
114109
/// The revision walker is empty; there are no more commits left to iterate
115110
/// </summary>
116-
GIT_EREVWALKOVER = (GIT_ERROR - 20),
111+
GIT_EREVWALKOVER = -20,
117112

118113
/// <summary>
119114
/// The state of the reference is not valid
120115
/// </summary>
121-
GIT_EINVALIDREFSTATE = (GIT_ERROR - 21),
116+
GIT_EINVALIDREFSTATE = -21,
122117

123118
/// <summary>
124119
/// This feature has not been implemented yet
125120
/// </summary>
126-
GIT_ENOTIMPLEMENTED = (GIT_ERROR - 22),
121+
GIT_ENOTIMPLEMENTED = -22,
127122

128123
/// <summary>
129124
/// A reference with this name already exists
130125
/// </summary>
131-
GIT_EEXISTS = (GIT_ERROR - 23),
126+
GIT_EEXISTS = -23,
132127

133128
/// <summary>
134129
/// The given integer literal is too large to be parsed
135130
/// </summary>
136-
GIT_EOVERFLOW = (GIT_ERROR - 24),
131+
GIT_EOVERFLOW = -24,
137132

138133
/// <summary>
139134
/// The given literal is not a valid number
140135
/// </summary>
141-
GIT_ENOTNUM = (GIT_ERROR - 25),
136+
GIT_ENOTNUM = -25,
142137

143138
/// <summary>
144139
/// Streaming error
145140
/// </summary>
146-
GIT_ESTREAM = (GIT_ERROR - 26),
141+
GIT_ESTREAM = -26,
147142

148143
/// <summary>
149144
/// invalid arguments to function
150145
/// </summary>
151-
GIT_EINVALIDARGS = (GIT_ERROR - 27),
146+
GIT_EINVALIDARGS = -27,
147+
148+
/// <summary>
149+
/// The specified object has its data corrupted
150+
/// </summary>
151+
GIT_EOBJCORRUPTED = -28,
152152
}
153153
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace LibGit2Sharp.Core
55
{
66
internal static class NativeMethods
77
{
8-
const string libgit2 = "git2.dll";
8+
const string libgit2 = "git2-0.dll";
99

1010
[DllImport(libgit2)]
1111
public static extern IntPtr git_blob_rawcontent(IntPtr blob);

LibGit2Sharp/Core/UnSafeNativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace LibGit2Sharp.Core
55
{
66
internal static unsafe class UnSafeNativeMethods
77
{
8-
private const string libgit2 = "git2.dll";
8+
private const string libgit2 = "git2-0.dll";
99

1010
[DllImport(libgit2)]
1111
public static extern int git_reference_listall(git_strarray* array, RepositorySafeHandle repo, GitReferenceType flags);

LibGit2Sharp/LibGit2Sharp.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@
103103
<Compile Include="TreeEntry.cs" />
104104
</ItemGroup>
105105
<ItemGroup>
106-
<Content Include="..\Lib\git2.dll">
107-
<Link>git2.dll</Link>
106+
<CodeAnalysisDictionary Include="CustomDictionary.xml" />
107+
</ItemGroup>
108+
<ItemGroup>
109+
<Content Include="..\Lib\git2-0.dll">
110+
<Link>git2-0.dll</Link>
108111
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
109112
</Content>
110-
<CodeAnalysisDictionary Include="CustomDictionary.xml" />
111113
</ItemGroup>
112114
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
113115
<PropertyGroup>

0 commit comments

Comments
 (0)
0