From: Nguyễn Thái Ngọc Duy Date: Thu, 25 Apr 2019 09:45:53 +0000 (+0700) Subject: restore: replace --force with --ignore-unmerged X-Git-Tag: v2.23.0-rc0~64^2~10 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/a5e5f399ca89cea574d11704d625a7b28b53de76?ds=inline;hp=a5e5f399ca89cea574d11704d625a7b28b53de76 restore: replace --force with --ignore-unmerged Use a more specific option name to express its purpose. --force may come back as an alias of --ignore-unmerged and possibly more. But since this is a destructive operation, I don't see why we need to "force" anything more. We already don't hold back. When 'checkout --force' or 'restore --ignore-unmerged' is used, we may also print warnings about unmerged entries being ignore. Since this is not exactly warning (people tell us to do so), more informational, let it be suppressed if --quiet is given. This is a behavior change for git-checkout. PS. The diff looks a bit iffy since --force is moved to add_common_switch_branch_options() (i.e. for switching). But git-checkout is also doing switching and inherits this --force. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---