summaryrefslogtreecommitdiff
path: root/unpack-trees.h
diff options
context:
space:
mode:
authorLibravatar Daniel Barkalow <barkalow@iabervon.org>2008-02-07 11:40:02 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-02-09 23:16:51 -0800
commit4e7c4571b8b31d6a09de2826361540caa76d3526 (patch)
tree5a1ad8a393ca1408bbf252b4842a3fd82c03959e /unpack-trees.h
parentDiscard "deleted" cache entries after using them to update the working tree (diff)
downloadtgif-4e7c4571b8b31d6a09de2826361540caa76d3526.tar.xz
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 <barkalow@iabervon.org>
Diffstat (limited to 'unpack-trees.h')
-rw-r--r--unpack-trees.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unpack-trees.h b/unpack-trees.h
index 83d1229532..a2df544d04 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;