add reflog when moving HEAD to a new branch
Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Nicolas Pitre committed
Jan 26, 2007 at 17:26 UTC
a7e4fbf990290f955da1319ab605a59f85d3c3e2
1 file changed
+1
-1
git-checkout.sh
+1
-1
@@ -250,7 +250,7 @@ if [ "$?" -eq 0 ]; then
250
fi
251
if test -n "$branch"
252
then
253
- GIT_DIR="$GIT_DIR" git-symbolic-ref HEAD "refs/heads/$branch"
253
+ GIT_DIR="$GIT_DIR" git-symbolic-ref -m "checkout: moving to $branch" HEAD "refs/heads/$branch"
254
elif test -n "$detached"
255
then
256
# NEEDSWORK: we would want a command to detach the HEAD