From: Nicolas Pitre Date: Fri, 26 Jan 2007 22:26:11 +0000 (-0500) Subject: add reflog when moving HEAD to a new branch X-Git-Tag: v1.5.0-rc4~49^2~5 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a7e4fbf990290f955da1319ab605a59f85d3c3e2;p=git.git add reflog when moving HEAD to a new branch Signed-off-by: Nicolas Pitre Signed-off-by: Junio C Hamano --- diff --git a/git-checkout.sh b/git-checkout.sh index ac378cdb1..1349e77f3 100755 --- a/git-checkout.sh +++ b/git-checkout.sh @@ -250,7 +250,7 @@ if [ "$?" -eq 0 ]; then fi if test -n "$branch" then - GIT_DIR="$GIT_DIR" git-symbolic-ref HEAD "refs/heads/$branch" + GIT_DIR="$GIT_DIR" git-symbolic-ref -m "checkout: moving to $branch" HEAD "refs/heads/$branch" elif test -n "$detached" then # NEEDSWORK: we would want a command to detach the HEAD