{"thread":{"id":"10590","subject":"Re: [PATCH] Make git-clone obey \"--\" (end argument parsing)","startedAt":"2007-11-02T14:21:50Z","lastAt":"2007-11-02T21:32:11Z","messageCount":2,"participants":["Heikki Orsila","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"57985","messageId":"20071102142150.GD9632@jolt.modeemi.cs.tut.fi","threadId":"10590","inReplyTo":null,"subject":"Re: [PATCH] Make git-clone obey \"--\" (end argument parsing)","fromName":"Heikki Orsila","fromEmail":"shd@modeemi.fi","sentAt":"2007-11-02T14:21:50Z","receivedAt":"2007-11-02T14:21:50Z","isPatch":true,"sender":{"key":"shd@modeemi.fi","avatar":null},"body":"Junio C Hamano wrote:\n> I do not think this breaks anything, but does it _help_\n> anything in practice?\n> \n> What kind of breakage does this patch fix?\n\nIt doesn't fix anything, but it is a good usability standard to obey --.\nI was creating a script that would _automatically_ clone repositories of \nother users. As a little bit pedantic shell script writer I added \"--\" \nand noticed that git clone doesn't handle that, although it's expected \nbehavior from many tools.\n\n-- \nHeikki Orsila\t\t\tBarbie's law:\nheikki.orsila@iki.fi\t\t\"Math is hard, let's go shopping!\"\nhttp://www.iki.fi/shd\n"},{"id":"58042","messageId":"7vwst0z63o.fsf@gitster.siamese.dyndns.org","threadId":"10590","inReplyTo":"20071102142150.GD9632@jolt.modeemi.cs.tut.fi","subject":"Re: [PATCH] Make git-clone obey \"--\" (end argument parsing)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2007-11-02T21:32:11Z","receivedAt":"2007-11-02T21:32:11Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Heikki Orsila <shd@modeemi.fi> writes:\n\n> Junio C Hamano wrote:\n>> I do not think this breaks anything, but does it _help_\n>> anything in practice?\n>> \n>> What kind of breakage does this patch fix?\n>\n> It doesn't fix anything, but it is a good usability standard to obey --.\n> I was creating a script that would _automatically_ clone repositories of \n> other users. As a little bit pedantic shell script writer I added \"--\" \n> and noticed that git clone doesn't handle that,...\n\nThe first real parameter will always be the remote repo\nURL^Wlocator, and sane people won't have anything that begin\nwith a hyphen for that, will they?\n\nSo the change is only for consistency's sake.\n\nI am not saying that is a bad thing.  I just wanted to\nunderstand if there was a real breakage there.\n\nThanks. Will apply.\n"}]}