]> git.ipfire.org Git - thirdparty/git.git/blobdiff - unpack-trees.c
doc hash-function-transition: pick SHA-256 as NewHash
[thirdparty/git.git] / unpack-trees.c
index 3a85a02a7733aeeee86da1a324319d026c32d787..cd0680f11e3580ef24e9140dd00a1e38f02557d8 100644 (file)
@@ -16,6 +16,7 @@
 #include "submodule.h"
 #include "submodule-config.h"
 #include "fsmonitor.h"
+#include "object-store.h"
 #include "fetch-object.h"
 
 /*
@@ -1246,7 +1247,7 @@ static void mark_new_skip_worktree(struct exclude_list *el,
                if (select_flag && !(ce->ce_flags & select_flag))
                        continue;
 
-               if (!ce_stage(ce))
+               if (!ce_stage(ce) && !(ce->ce_flags & CE_CONFLICTED))
                        ce->ce_flags |= skip_wt_flag;
                else
                        ce->ce_flags &= ~skip_wt_flag;