summaryrefslogtreecommitdiff
path: root/ls-refs.h
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-04-25 09:45:48 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-07 04:04:47 (GMT)
commita6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323 (patch)
treeec98c7c7a3451983fbc9c00e54e1bab4064923a2 /ls-refs.h
parentbe8ed5022b84fa75c24f24bbf64bb5ad6652c64f (diff)
downloadgit-a6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323.zip
git-a6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323.tar.gz
git-a6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323.tar.bz2
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 'ls-refs.h')
0 files changed, 0 insertions, 0 deletions