checkout: add --ignore-skip-worktree-bits in sparse checkout mode
commit08d595dc1cdf6f0d8e6022a69c4fcdd2fba628cf
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Fri, 12 Apr 2013 23:12:08 +0000 (13 09:12 +1000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 15 Apr 2013 15:54:45 +0000 (15 08:54 -0700)
tree16b4f6d24e7a3419f6e247d9fd3498189d5c731d
parent85e7e81ccfcec98972e341ab81b0109084b84906
checkout: add --ignore-skip-worktree-bits in sparse checkout mode

"git checkout -- <paths>" is usually used to restore all modified
files in <paths>. In sparse checkout mode, this command is overloaded
with another meaning: to add back all files in <paths> that are
excluded by sparse patterns.

As the former makes more sense for day-to-day use. Switch it to the
default and the latter enabled with --ignore-skip-worktree-bits.

While at there, add info/sparse-checkout to gitrepository-layout.txt

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-checkout.txt
Documentation/gitrepository-layout.txt
builtin/checkout.c
t/t1011-read-tree-sparse-checkout.sh
t/t3001-ls-files-others-exclude.sh