8000 Update libgit2 to 47f3740 · GiTechLab/libgit2sharp@8ca66fb · GitHub
[go: up one dir, main page]

Skip to content

Commit 8ca66fb

Browse files
committed
Update libgit2 to 47f3740
libgit2/libgit2@9bbc8f3...47f3740
1 parent 2e3b534 commit 8ca66fb

15 files changed

+74
-17
lines changed
1010 KB
Binary file not shown.
-1010 KB
Binary file not shown.
758 KB
Binary file not shown.
-757 KB
Binary file not shown.

LibGit2Sharp/Core/GitMergeOpts.cs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ internal struct GitMergeOpts
3131
/// Flags for automerging content.
3232
/// </summary>
3333
public MergeFileFavor MergeFileFavorFlags;
34+
35+
/// <summary>
36+
/// Flags to use for file merging.
37+
/// </summary>
38+
public GitMergeFileFlags FileFlags;
3439
}
3540

3641
/// <summary>
@@ -105,4 +110,53 @@ internal enum GitMergeTreeFlags
105110
/// </summary>
106111
GIT_MERGE_TREE_FIND_RENAMES = (1 << 0),
107112
}
113+
114+
[Flags]
115+
internal enum GitMergeFileFlags
116+
{
117+
/// <summary>
118+
/// No options.
119+
/// </summary>
120+
GIT_MERGE_FILE_DEFAULT = 0,
121+
122+
/// <summary>
123+
/// Creates standard conflicted merge files.
124+
/// </summary>
125+
GIT_MERGE_FILE_STYLE_MERGE = (1 << 0),
126+
127+
/// <summary>
128+
/// Creates diff3 style files.
129+
/// </summary>
130+
GIT_MERGE_FILE_STYLE_DIFF3 = (1 << 1),
131+
132+
/// <summary>
133+
/// Condenses non-alphanumeric regions for simplified diff files.
134+
/// </summary>
135+
GIT_MERGE_FILE_SIMPLIFY_ALNUM = (1 << 2),
136+
137+
/// <summary>
138+
/// Ignores all whitespace.
139+
/// </summary>
140+
GIT_MERGE_FILE_IGNORE_WHITESPACE = (1 << 3),
141+
142+
/// <summary>
143+
/// Ignores changes in amount of whitespace.
144+
/// </summary>
145+
GIT_MERGE_FILE_IGNORE_WHITESPACE_CHANGE = (1 << 4),
146+
147+
/// <summary>
148+
/// Ignores whitespace at the end of the line.
149+
/// </summary>
150+
GIT_MERGE_FILE_IGNORE_WHITESPACE_EOL = (1 << 5),
151+
152+
/// <summary>
153+
/// Uses the 'patience' diff algorithm.
154+
/// </summary>
155+
GIT_MERGE_FILE_DIFF_PATIENCE = (1 << 6),
156+
157+
/// <summary>
158+
/// Take extra time to find the minimal diff.
159+
/// </summary>
160+
GIT_MERGE_FILE_DIFF_MINIMAL = (1 << 7),
161+
}
108162
}

LibGit2Sharp/Core/GitSmartSubtransportRegistration.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ internal class GitSmartSubtransportRegistration
88
{
99
public IntPtr SubtransportCallback;
1010
public uint Rpc;
11+
public IntPtr Param;
1112

1213
public delegate int create_callback(
1314
out IntPtr subtransport,
14-
IntPtr transport);
15+
IntPtr transport,
16+
IntPtr param);
1517
}
1618
}

LibGit2Sharp/Core/NativeDllName.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ namespace LibGit2Sharp.Core
22
{
33
internal static class NativeDllName
44
{
5-
public const string Name = "git2-9bbc8f3";
5+
public const string Name = "git2-47f3740";
66
}
77
}

LibGit2Sharp/Core/NativeMethods.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ internal static extern int git_note_remove(
726726

727727
[DllImport(libgit2)]
728728
internal static extern int git_note_default_ref(
729-
[MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie = UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(LaxUtf8NoCleanupMarshaler))] out string notes_ref,
729+
GitBuf buf,
730730
RepositorySafeHandle repo);
731731

732732
internal delegate int git_note_foreach_cb(

0 commit comments

Comments
 (0)
0