summaryrefslogtreecommitdiff
path: root/git-archimport.perl
diff options
context:
space:
mode:
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>2019-04-25 09:45:52 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-05-07 04:04:47 (GMT)
commit3a733ce5237570460bbb63e20002b92e903ad65f (patch)
tree14e5cd0e77b763e3fd4187bd025fea66c23bcc74 /git-archimport.perl
parente3ddd3b5e583e62d874f56f8c88603ad0ebafd5e (diff)
downloadgit-3a733ce5237570460bbb63e20002b92e903ad65f.zip
git-3a733ce5237570460bbb63e20002b92e903ad65f.tar.gz
git-3a733ce5237570460bbb63e20002b92e903ad65f.tar.bz2
restore: default to --source=HEAD when only --staged is specified
"git restore --staged" without --source does not make much sense since by default we restore from the index. Instead of copying the index to itself, set the default source to HEAD in this case, yielding behavior that matches "git reset -- <paths>". 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 'git-archimport.perl')
0 files changed, 0 insertions, 0 deletions