From: Junio C Hamano Date: Wed, 31 Jan 2007 21:30:54 +0000 (-0800) Subject: Documentation: "git-checkout " takes any tree-ish X-Git-Tag: v1.5.0-rc3~7 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=84a978f11870824dae45c7d0fa612a10f64b3fff;p=git.git Documentation: "git-checkout " takes any tree-ish Especially, it is not limited to branch. Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index c44a4a800..4ea2b315d 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -9,7 +9,7 @@ SYNOPSIS -------- [verse] 'git-checkout' [-f] [-b [-l]] [-m] [] -'git-checkout' [] ... +'git-checkout' [] ... DESCRIPTION ----------- @@ -22,11 +22,13 @@ be created. When are given, this command does *not* switch branches. It updates the named paths in the working tree from -the index file (i.e. it runs `git-checkout-index -f -u`). In +the index file (i.e. it runs `git-checkout-index -f -u`), or a +named commit. In this case, `-f` and `-b` options are meaningless and giving -either of them results in an error. argument can be -used to specify a specific tree-ish to update the index for the -given paths before updating the working tree. +either of them results in an error. argument can be +used to specify a specific tree-ish (i.e. commit, tag or tree) +to update the index for the given paths before updating the +working tree. OPTIONS