author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | |
Thu, 20 Aug 2009 13:47:13 +0000 (20:47 +0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 24 Aug 2009 00:14:42 +0000 (17:14 -0700) | ||
commit | 9e1afb16753d583a696c988d33f45655f81e8f7c | |
tree | 0ad696855e2031ebd059dc585810ad24605ee859 | tree | snapshot |
parent | d6b38f61c8125423abdf2b9c10f2187c5fecd80e | commit | diff |
sparse checkout: inhibit empty worktree
The way sparse checkout works, users may empty their worktree
completely, because of non-matching sparse-checkout spec, or empty
spec. I believe this is not desired. This patch makes Git refuse to
produce such worktree.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The way sparse checkout works, users may empty their worktree
completely, because of non-matching sparse-checkout spec, or empty
spec. I believe this is not desired. This patch makes Git refuse to
produce such worktree.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t1009-read-tree-sparse-checkout.sh | diff | blob | history | |
unpack-trees.c | diff | blob | history |