Documentation: "git-checkout <tree> <path>" takes any tree-ish
Especially, it is not limited to branch. Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Jan 31, 2007 at 13:30 UTC
84a978f11870824dae45c7d0fa612a10f64b3fff
1 file changed
+7
-5
Documentation/git-checkout.txt
+7
-5
@@ -9,7 +9,7 @@ SYNOPSIS
9
--------
10
[verse]
11
'git-checkout' [-f] [-b <new_branch> [-l]] [-m] [<branch>]
12
-'git-checkout' [<branch>] <paths>...
12
+'git-checkout' [<tree-ish>] <paths>...
13
14
DESCRIPTION
15
-----------
@@ -22,11 +22,13 @@ be created.
22
23
When <paths> are given, this command does *not* switch
24
branches. It updates the named paths in the working tree from
25
-the index file (i.e. it runs `git-checkout-index -f -u`). In
25
+the index file (i.e. it runs `git-checkout-index -f -u`), or a
26
+named commit. In
27
this case, `-f` and `-b` options are meaningless and giving
27
-either of them results in an error. <branch> argument can be
28
-used to specify a specific tree-ish to update the index for the
29
-given paths before updating the working tree.
28
+either of them results in an error. <tree-ish> argument can be
29
+used to specify a specific tree-ish (i.e. commit, tag or tree)
30
+to update the index for the given paths before updating the
31
+working tree.
32
33
34
OPTIONS