summaryrefslogtreecommitdiff
path: root/builtin/commit.c
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-04-25 16:45:48 +0700
committerJunio C Hamano <gitster@pobox.com>2019-05-07 13:04:47 +0900
commita6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323 (patch)
treeec98c7c7a3451983fbc9c00e54e1bab4064923a2 /builtin/commit.c
parentbe8ed5022b84fa75c24f24bbf64bb5ad6652c64f (diff)
restore: disable overlay mode by default
Overlay mode is considered confusing when the command is about restoring files on worktree. Disable it by default. The user can still turn it on, or use 'git checkout' which still has overlay mode on by default. While at it, make the check in checkout_branch() stricter. Neither --overlay or --no-overlay should be accepted in branch switching mode. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions