From 9d17afec6a6dd74d7afac10ddee7203727cdbcdd Mon Sep 17 00:00:00 2001 From: nulltoken Date: Fri, 23 Oct 2015 20:39:50 +0200 Subject: [PATCH] Update libgit2 to 821131f https://github.com/libgit2/libgit2/compare/a99f33e...821131f --- LibGit2Sharp/ConfigurationLevel.cs | 8 ++++---- LibGit2Sharp/Core/GitMergeOpts.cs | 11 ++++++++++- LibGit2Sharp/LibGit2Sharp.csproj | 4 ++-- LibGit2Sharp/packages.config | 2 +- 4 files changed, 17 insertions(+), 8 deletions(-) diff --git a/LibGit2Sharp/ConfigurationLevel.cs b/LibGit2Sharp/ConfigurationLevel.cs index b8ab12097..92122727a 100644 --- a/LibGit2Sharp/ConfigurationLevel.cs +++ b/LibGit2Sharp/ConfigurationLevel.cs @@ -8,21 +8,21 @@ public enum ConfigurationLevel /// /// The local .git/config of the current repository. /// - Local = 4, + Local = 5, /// /// The global ~/.gitconfig of the current user. /// - Global = 3, + Global = 4, /// /// The global ~/.config/git/config of the current user. /// - Xdg = 2, + Xdg = 3, /// /// The system wide .gitconfig. /// - System = 1, + System = 2, } } diff --git a/LibGit2Sharp/Core/GitMergeOpts.cs b/LibGit2Sharp/Core/GitMergeOpts.cs index e122cbdc1..90e5a3ee7 100644 --- a/LibGit2Sharp/Core/GitMergeOpts.cs +++ b/LibGit2Sharp/Core/GitMergeOpts.cs @@ -106,9 +106,18 @@ internal enum GitMergeTreeFlags GIT_MERGE_TREE_NORMAL = 0, /// - /// GIT_MERGE_TREE_FIND_RENAMES in libgit2 + /// Detect renames that occur between the common ancestor and the "ours" + /// side or the common ancestor and the "theirs" side. This will enable + /// the ability to merge between a modified and renamed file. /// GIT_MERGE_TREE_FIND_RENAMES = (1 << 0), + + /// + /// If a conflict occurs, exit immediately instead of attempting to + /// continue resolving conflicts. The merge operation will fail with + /// GIT_EMERGECONFLICT and no index will be returned. + /// + GIT_MERGE_TREE_FAIL_ON_CONFLICT = (1 << 1), } [Flags] diff --git a/LibGit2Sharp/LibGit2Sharp.csproj b/LibGit2Sharp/LibGit2Sharp.csproj index 8254b811a..c2fc74e2e 100644 --- a/LibGit2Sharp/LibGit2Sharp.csproj +++ b/LibGit2Sharp/LibGit2Sharp.csproj @@ -1,6 +1,6 @@  - + Debug AnyCPU @@ -405,7 +405,7 @@ This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - +