From: Nguyễn Thái Ngọc Duy Date: Thu, 25 Apr 2019 09:45:47 +0000 (+0700) Subject: restore: make pathspec mandatory X-Git-Tag: v2.23.0-rc0~64^2~16 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/be8ed5022b84fa75c24f24bbf64bb5ad6652c64f?hp=be8ed5022b84fa75c24f24bbf64bb5ad6652c64f restore: make pathspec mandatory "git restore" without arguments does not make much sense when it's about restoring files (what files now?). We could default to either git restore . or git restore :/ Neither is intuitive. Make the user always give pathspec, force the user to think the scope of restore they want because this is a destructive operation. "git restore -p" without pathspec is an exception to this because it really is a separate mode. It will be treated as running patch mode on the whole worktree. Signed-off-by: Nguyễn Thái Ngọc Duy Signed-off-by: Junio C Hamano ---