t1000: fix case table.
PATCH 1/5 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).
--- t/t1000-read-tree-m-3way.sh | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
t/t1000-read-tree-m-3way.sh +1 -1
@@ -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.
Signature · 1 line
1.5.1.81.gee969
Quoted 5 lines · Junio C Hamano
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).
Looks like I neglected to update (or remove) that table; Documentation/technical/trivial-merge.txt agrees with your change.
-Daniel
*This .sig left intentionally blank*