git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Nicolas Pitre <nico@cam.org>
Date
Feb 4, 2007, 02:58 UTC
Message-ID
<Pine.LNX.4.64.0702032155560.3021@xanadu.home>
In-Reply-To
<Pine.LNX.4.64.0702032149200.3021@xanadu.home>
OK obviously I can't send proper patches today.
On Sat, 3 Feb 2007, Nicolas Pitre wrote:
Show 10 quoted lines
> 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
Previous: Nicolas Pitre
Message 2 of 2 in “Let git-checkout always drop any detached head”
  1. 2/2 Let git-checkout always drop any detached headNicolas Pitre, Feb 4, 2007
  2. Nicolas PitreFeb 4, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.