From: Nguyễn Thái Ngọc Duy Date: Sun, 30 Nov 2008 10:54:36 GMT Subject: [PATCH 6/8] checkout: add new options to support sparse checkout Message-ID: <1228042478-1886-7-git-send-email-pclouds@gmail.com> In-Reply-To: <1228042478-1886-6-git-send-email-pclouds@gmail.com> This patch adds main interface to manipulate sparse checkout. New options are added to support entering/updating/leaving sparse checkout: --full: return to full checkout (default) --sparse: set checkout area according to given spec --{include,exclude}-sparse: adjust current sparse checkout area Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-checkout.txt | 55 ++++++++++++++++- builtin-checkout.c | 39 ++++++++++++ t/t2011-checkout-sparse.sh | 128 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 219 insertions(+), 3 deletions(-) create mode 100755 t/t2011-checkout-sparse.sh diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 0813d9f..b32043f 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -8,8 +8,10 @@ git-checkout - Checkout a branch or paths to the working tree SYNOPSIS -------- [verse] -'git checkout' [-q] [-f] [--track | --no-track] [-b [-l]] [-m] [] -'git checkout' [-f|--ours|--theirs|-m|--conflict=