Enable ref log creation in git checkout -b.
commit969d326d6b54573e171c903fdf9fdc6b107c18d1
authorShawn Pearce <spearce@spearce.org>
Fri, 19 May 2006 09:17:16 +0000 (19 05:17 -0400)
committerJunio C Hamano <junkio@cox.net>
Fri, 19 May 2006 22:03:39 +0000 (19 15:03 -0700)
tree8dcaf9fe7773bc53c98b9654adc29a271609d31d
parent3a4b3f269c4ba1eebd5ab7206ee0915667b20cc8
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 <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-checkout.txt
git-checkout.sh