From: Nguyễn Thái Ngọc Duy Date: Sat, 20 Sep 2008 10:01:52 GMT Subject: [PATCH 13/14] checkout: add new options to support sparse checkout Message-ID: <1221904913-25887-14-git-send-email-pclouds@gmail.com> In-Reply-To: <1221904913-25887-13-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) --reset-path: set checkout area according to given spec --add-path/--remove-path: adjust current sparse checkout area Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-checkout.txt | 54 +++++++++++++++++++- builtin-checkout.c | 37 ++++++++++++++ t/t2011-checkout-sparse.sh | 108 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 196 insertions(+), 3 deletions(-) create mode 100755 t/t2011-checkout-sparse.sh diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index d6f94a6..571e2a4 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=