Skip to content

Commit 76ce946

Browse files
qurgitster
authored andcommitted
Documentation/git-checkout: Update summary to reflect current abilities
For a while now, git-checkout has been more powerful than the man-page summary would suggest (the main text does describe the new features), so update the summary to hopefully better reflect the current functionality. Also update the glossary description of the word checkout. Signed-off-by: Julian Phillips <julian@quantumfyre.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 995e8df commit 76ce946

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

Documentation/git-checkout.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ git-checkout(1)
33

44
NAME
55
----
6-
git-checkout - Checkout and switch to a branch
6+
git-checkout - Checkout a branch or paths to the working tree
77

88
SYNOPSIS
99
--------

Documentation/glossary.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,12 @@ GIT Glossary
4545
"changesets" with git.
4646

4747
[[def_checkout]]checkout::
48-
The action of updating the <<def_working_tree,working tree>> to a
49-
<<def_revision,revision>> which was stored in the
50-
<<def_object_database,object database>>.
48+
The action of updating all or part of the
49+
<<def_working_tree,working tree>> with a <<def_tree_object,tree object>>
50+
or <<def_blob_object,blob>> from the
51+
<<def_object_database,object database>>, and updating the
52+
<<def_index,index>> and <<def_HEAD,HEAD>> if the whole working tree has
53+
been pointed at a new <<def_branch,branch>>.
5154

5255
[[def_cherry-picking]]cherry-picking::
5356
In <<def_SCM,SCM>> jargon, "cherry pick" means to choose a subset of

0 commit comments

Comments
 (0)