[ -e "$GIT_DIR/refs/heads/$newbranch" ] &&
die "git checkout: branch $newbranch already exists"
git-check-ref-format "heads/$newbranch" ||
- die "we do not like '$newbranch' as a branch name."
+ die "we do not like '$newbranch' as a branch name."
+Did you intend to checkout '$@' which can not be resolved as commit?"
if test '' != "$newbranch$force$merge"
- die "updating paths
and switching branches or forcing are incompatible."
+ die "updating paths switching branchesforcing"
[ -z "$branch$newbranch" ] &&
- die "git checkout: you need to specify a new branch name"
+ die "git checkout: to checkout the requested commit you need to specify
+ a name for a new branch which is created and switched to"