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

Re: [PATCH] Make git-clone obey "--" (end argument parsing)

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 2, 2007, 21:32 UTC
Message-ID
<7vwst0z63o.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20071102142150.GD9632@jolt.modeemi.cs.tut.fi>
Heikki Orsila <shd@modeemi.fi> writes:
Show 10 quoted lines
> Junio C Hamano wrote:
>> I do not think this breaks anything, but does it _help_
>> anything in practice?
>> 
>> What kind of breakage does this patch fix?
>
> It doesn't fix anything, but it is a good usability standard to obey --.
> I was creating a script that would _automatically_ clone repositories of 
> other users. As a little bit pedantic shell script writer I added "--" 
> and noticed that git clone doesn't handle that,...

The first real parameter will always be the remote repo URL^Wlocator, and sane people won't have anything that begin with a hyphen for that, will they?

So the change is only for consistency's sake.

I am not saying that is a bad thing. I just wanted to understand if there was a real breakage there.

Thanks. Will apply.
Previous: Heikki Orsila
Message 2 of 2 in “Re: [PATCH] Make git-clone obey "--" (end argument parsing)”
  1. Heikki OrsilaNov 2, 2007
  2. Junio C HamanoNov 2, 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.