diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2013-04-13 09:12:08 +1000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2013-04-15 08:54:45 -0700 |
commit | 08d595dc1cdf6f0d8e6022a69c4fcdd2fba628cf (patch) | |
tree | 16b4f6d24e7a3419f6e247d9fd3498189d5c731d /Documentation/gitrepository-layout.txt | |
parent | 85e7e81ccfcec98972e341ab81b0109084b84906 (diff) | |
download | git-08d595dc1cdf6f0d8e6022a69c4fcdd2fba628cf.tar.gz git-08d595dc1cdf6f0d8e6022a69c4fcdd2fba628cf.tar.xz |
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>
Diffstat (limited to 'Documentation/gitrepository-layout.txt')
-rw-r--r-- | Documentation/gitrepository-layout.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Documentation/gitrepository-layout.txt b/Documentation/gitrepository-layout.txt index f0eef765b..817337f57 100644 --- a/Documentation/gitrepository-layout.txt +++ b/Documentation/gitrepository-layout.txt @@ -184,6 +184,10 @@ info/exclude:: 'git clean' look at it but the core Git commands do not look at it. See also: linkgit:gitignore[5]. +info/sparse-checkout:: + This file stores sparse checkout patterns. + See also: linkgit:git-read-tree[1]. + remotes:: Stores shorthands for URL and default refnames for use when interacting with remote repositories via 'git fetch', |