path: root/unpack-trees.h
diff options
authorDaniel Barkalow <>2008-02-07 16:40:02 (GMT)
committerJunio C Hamano <>2008-02-10 07:16:51 (GMT)
commit4e7c4571b8b31d6a09de2826361540caa76d3526 (patch)
tree5a1ad8a393ca1408bbf252b4842a3fd82c03959e /unpack-trees.h
parent33ecf7eb6143143711ccaf828134beb2dacbe5c9 (diff)
Add "skip_unmerged" option to unpack_trees.
This option allows the caller to reset everything that isn't unmerged, leaving the unmerged things to be resolved. If, after a merge of "working" and "HEAD", this is used with "HEAD" (reset, !update), the result will be that all of the changes from "local" are in the working tree but not added to the index (either with the index clean but unchanged, or with the index unmerged, depending on whether there are conflicts). This will be used in checkout -m. Signed-off-by: Daniel Barkalow <>
Diffstat (limited to 'unpack-trees.h')
1 files changed, 1 insertions, 0 deletions
diff --git a/unpack-trees.h b/unpack-trees.h
index 83d1229..a2df544 100644
--- a/unpack-trees.h
+++ b/unpack-trees.h
@@ -16,6 +16,7 @@ struct unpack_trees_options {
int trivial_merges_only;
int verbose_update;
int aggressive;
+ int skip_unmerged;
int gently;
const char *prefix;
int pos;