diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2019-04-25 09:45:47 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-07 04:04:47 (GMT) |
commit | be8ed5022b84fa75c24f24bbf64bb5ad6652c64f (patch) | |
tree | b13462a0ee1248fa402388b378e164d2213ef773 /transport-internal.h | |
parent | c9c935f6d4519c53f27f50113bea2c17deb8b71e (diff) | |
download | git-be8ed5022b84fa75c24f24bbf64bb5ad6652c64f.zip git-be8ed5022b84fa75c24f24bbf64bb5ad6652c64f.tar.gz git-be8ed5022b84fa75c24f24bbf64bb5ad6652c64f.tar.bz2 |
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 <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport-internal.h')
0 files changed, 0 insertions, 0 deletions