diff options
author | Junio C Hamano <junkio@cox.net> | 2007-04-07 16:42:01 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-04-10 23:55:51 +0400 |
commit | ea4b52a86f6b6b8e5aef8e47fb557f37422512bf (patch) | |
tree | 31aa071b56a37a864ca6ed563cb785b53e962b4b | |
parent | 8ff21b1a3307c7059ea1e00b5117a50a2bc5fec8 (diff) |
t1000: fix case table.
Case #10 is not handled with unpack-trees.c:threeway_merge()
internally, unless under the agressive rule, and it is not a
bug. As the test expects, ND (one side did not do anything,
other side deleted) case was meant to be handled by the caller's
policy (e.g. git-merge-one-file or git-merge-recursive).
Signed-off-by: Junio C Hamano <junkio@cox.net>
-rwxr-xr-x | t/t1000-read-tree-m-3way.sh | 2 | ||||
-rw-r--r-- | unpack-trees.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/t/t1000-read-tree-m-3way.sh b/t/t1000-read-tree-m-3way.sh index e26a36cf0f..de4e5eb61f 100755 --- a/t/t1000-read-tree-m-3way.sh +++ b/t/t1000-read-tree-m-3way.sh @@ -184,7 +184,7 @@ checked. 9 exists O!=A missing no merge must match A and be up-to-date, if exists. ------------------------------------------------------------------ - 10 exists O==A missing remove ditto + 10 exists O==A missing no merge must match A ------------------------------------------------------------------ 11 exists O!=A O!=B no merge must match A and be A!=B up-to-date, if exists. diff --git a/unpack-trees.c b/unpack-trees.c index a0b676903a..2a58b7fa28 100644 --- a/unpack-trees.c +++ b/unpack-trees.c @@ -786,7 +786,7 @@ int threeway_merge(struct cache_entry **stages, o->nontrivial_merge = 1; - /* #2, #3, #4, #6, #7, #9, #11. */ + /* #2, #3, #4, #6, #7, #9, #10, #11. */ count = 0; if (!head_match || !remote_match) { for (i = 1; i < o->head_idx; i++) { |