summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ead8060)
raw | patch | inline | side by side (parent: ead8060)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 8 Jan 2007 10:44:55 +0000 (02:44 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 8 Jan 2007 11:02:11 +0000 (03:02 -0800) |
When switching branches with "git checkout", we internally did $arg^0
(aka $arg^{commit}) suffix but there was no need to.
The improvement is easily visible in the change to an existing
test t/3200-branch.sh in this commit; it was expecting rather
ugly message.
Signed-off-by: Junio C Hamano <junkio@cox.net>
(aka $arg^{commit}) suffix but there was no need to.
The improvement is easily visible in the change to an existing
test t/3200-branch.sh in this commit; it was expecting rather
ugly message.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-checkout.sh | patch | blob | history | |
t/t3200-branch.sh | patch | blob | history |
diff --git a/git-checkout.sh b/git-checkout.sh
index 69d0c1c43a9f78908f13d3e0e9c34c44587367dd..a309bf0a1acf07eb7a7286dccb6d9cf68b813318 100755 (executable)
--- a/git-checkout.sh
+++ b/git-checkout.sh
exit 1
fi
new="$rev"
- new_name="$arg^0"
+ new_name="$arg"
if git-show-ref --verify --quiet -- "refs/heads/$arg"
then
branch="$arg"
diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index a6ea0f6a196c5285c229021c96bb83f33a3aa748..bb80e4286a7144e88aca9839c26b9fd99ff6cd4e 100755 (executable)
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
test ! -f .git/logs/refs/heads/d/e/f'
cat >expect <<EOF
-0000000000000000000000000000000000000000 $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000 checkout: Created from master^0
+0000000000000000000000000000000000000000 $HEAD $GIT_COMMITTER_NAME <$GIT_COMMITTER_EMAIL> 1117150200 +0000 checkout: Created from master
EOF
test_expect_success \
'git checkout -b g/h/i -l should create a branch and a log' \