Re: [PATCH 2/2] Let git-checkout always drop any detached head

From: Nicolas Pitre <nico@cam.org>
Date: 2007-02-04 13:58:03
OK obviously I can't send proper patches today.


On Sat, 3 Feb 2007, Nicolas Pitre wrote:

> diff --git a/git-checkout.sh b/git-checkout.sh
> index 99b8779..e4cce06 100755
> --- a/git-checkout.sh
> +++ b/git-checkout.sh
> @@ -164,22 +164,9 @@ If you want to create a new branch from this checkout, you may do so
>  (now or later) by using -b with the checkout command again. Example:
>    git checkout -b <new_branch_name>"
>  	fi
> -elif test -z "$oldbranch" && test -n "$branch"
> +elif test -z "$oldbranch" && && test -z "$quiet"

Of course there is one "&&" too many.


Nicolas
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Sun Feb 04 14:02:16 2007

This archive was generated by hypermail 2.1.8 : 2007-02-04 14:04:06 EST