path: root/Documentation/git-checkout.txt
diff options
authorShawn Pearce <>2006-05-19 09:17:16 (GMT)
committerJunio C Hamano <>2006-05-19 22:03:39 (GMT)
commit969d326d6b54573e171c903fdf9fdc6b107c18d1 (patch)
tree8dcaf9fe7773bc53c98b9654adc29a271609d31d /Documentation/git-checkout.txt
parent3a4b3f269c4ba1eebd5ab7206ee0915667b20cc8 (diff)
Enable ref log creation in git checkout -b.
Switch git checkout -b to use git-update-ref rather than echo and a shell I/O redirection. This is more in line with typical GIT commands and allows -b to be logged according to the normal ref logging rules. Added -l option to allow users to create the ref log at the same time as creating a branch. Signed-off-by: Shawn O. Pearce <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-checkout.txt')
1 files changed, 6 insertions, 1 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 0951289..0643943 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -8,7 +8,7 @@ git-checkout - Checkout and switch to a branch
-'git-checkout' [-f] [-b <new_branch>] [-m] [<branch>]
+'git-checkout' [-f] [-b <new_branch> [-l]] [-m] [<branch>]
'git-checkout' [-m] [<branch>] <paths>...
@@ -37,6 +37,11 @@ OPTIONS
Create a new branch and start it at <branch>.
+ Create the new branch's ref log. This activates recording of
+ all changes to made the branch ref, enabling use of date
+ based sha1 expressions such as "<branchname>@{yesterday}".
If you have local modifications to one or more files that
are different between the current branch and the branch to