Merge branch 'jc/maint-checkout-keep-remove' into maint

* jc/maint-checkout-keep-remove:
  checkout: do not lose staged removal
This commit is contained in:
Junio C Hamano
2008-09-18 19:53:22 -07:00
5 changed files with 24 additions and 2 deletions

View File

@ -269,6 +269,8 @@ static int merge_working_tree(struct checkout_opts *opts,
}
/* 2-way merge to the new branch */
topts.initial_checkout = (!active_nr &&
(old->commit == new->commit));
topts.update = 1;
topts.merge = 1;
topts.gently = opts->merge;