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

Re: What is 'git BRANCH'?

From
EREric Raible <raible@gmail.com>
Date
Jul 29, 2008, 23:45 UTC
Message-ID
<loom.20080729T233158-95@post.gmane.org>
In-Reply-To
<7v63qob9hz.fsf@gitster.siamese.dyndns.org>
Junio C Hamano <gitster <at> pobox.com> writes:
Show 11 quoted lines
> diff --git a/git.c b/git.c
> index 37b1d76..c99e769 100644
> --- a/git.c
> +++ b/git.c
> @@ -448,7 +448,7 @@ int main(int argc, const char **argv)
>  		cmd += 4;
>  		argv[0] = cmd;
>  		handle_internal_command(argc, argv);
> -		die("cannot handle %s internally", cmd);
> +		help_unknown_cmd(cmd);
>  	}
Which on windows leads to the less-than-friendly:

git BRANCH => git: 'BRANCH.exe' is not a git-command. See 'git --help'.

I wonder if it wouldn't be better to simply to a case-insensitive comparison when comparing against the builtin array. Alternatively, at least the the extension (if any) ought to be stripped.

I'd be glad to come up with the patch for either given the word...
- Eric
Previous: Jeff King
Message 8 of 8 in “What is 'git BRANCH'?”
  1. Jurko GospodnetićJul 29, 2008
  2. Junio C HamanoJul 29, 2008
  3. Kevin BallardJul 29, 2008
  4. Jurko GospodnetićJul 29, 2008
  5. Junio C HamanoJul 29, 2008
  6. Sverre RabbelierJul 29, 2008
  7. Jeff KingJul 30, 2008
  8. Eric RaibleJul 29, 2008

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.