diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-04-25 16:45:48 +0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-07 13:04:47 +0900 |
commit | a6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323 (patch) | |
tree | ec98c7c7a3451983fbc9c00e54e1bab4064923a2 /sha1dc_git.h | |
parent | restore: make pathspec mandatory (diff) | |
download | tgif-a6cfb9ba360d975dd38b2e6e77a88d2c8fe8d323.tar.xz |
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 'sha1dc_git.h')
0 files changed, 0 insertions, 0 deletions