Show interpreted branch name in error messages
authorConrad Irwin <redacted>
Sat, 20 Aug 2011 21:49:49 +0000 (14:49 -0700)
committerJunio C Hamano <redacted>
Mon, 22 Aug 2011 23:03:43 +0000 (16:03 -0700)
commit587a9ee7da348f5e6696720d770d0e0da597827c
treea5d378daeaec78a7d513056071b78c419b0ed515
parent55c4a673070f40f2ef12d0be269e95f1df6825a9
Show interpreted branch name in error messages

Change the error message when doing: "git branch @{-1}",
"git checkout -b @{-1}", or "git branch -m foo @{-1}"

 * was: A branch named '@{-1}' already exists.
 * now: A branch named 'bar' already exists.

Signed-off-by: Conrad Irwin <redacted>
Signed-off-by: Junio C Hamano <redacted>
branch.c
t/t2018-checkout-branch.sh
git clone https://git.99rst.org/PROJECT