git-read-tree.txt: correct sparse-checkout and skip-worktree descriptionsparse-checkout-warning
commit31152a2ddb83e37be1efce1d0cd742b71ea3efdd
authorMichael J Gruber <git@drmicha.warpmail.net>
Wed, 21 Sep 2011 07:28:15 +0000 (21 09:28 +0200)
committerMichael J Gruber <git@drmicha.warpmail.net>
Wed, 21 Sep 2011 07:28:15 +0000 (21 09:28 +0200)
tree560ff248dd551e3e736443e5f8d5869f6093bce1
parent9355aabec087558c4347d012d87e4c678fae148b
git-read-tree.txt: correct sparse-checkout and skip-worktree description

The description of .git/info/sparse-checkout and
skip-worktree is exactly the opposite of what is true, which is:

If a file matches a pattern in sparse-checkout, then (it is to be
checked out and therefore) skip-worktree is unset for that file;
otherwise, it is set (so that it is not checked out).

Currently, the opposite is documented, and (consistently) read-tree's
behavior with respect to bit flips is descibed incorrectly.

Fix it.

In hindsight, it would have been much better to have a "sparse-ignore"
or "sparse-skip" file so that an empty file would mean a full checkout,
and the file logic would be analogous to that of .gitignore, excludes
and skip-worktree.

Signed-off-by: Michael J Gruber <git@drmicha.warpmail.net>
Documentation/git-read-tree.txt