Re: is there a stylistic preference for a trailing "--" on a command?
- Date: Fri, 10 Nov 2017 10:12:39 -0800
- From: Stefan Beller <sbeller@xxxxxxxxxx>
- Subject: Re: is there a stylistic preference for a trailing "--" on a command?
On Fri, Nov 10, 2017 at 5:57 AM, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
> just noticed these examples in "man git-bisect":
> $ git bisect start HEAD v1.2 -- # HEAD is bad, v1.2 is good
> $ git bisect start HEAD origin -- # HEAD is bad, origin is good
> $ git bisect start HEAD HEAD~10 -- # culprit is among the last 10
> is there some rationale or stylistic significance to those trailing
> "--" on those commands? i assume they have no effect, just curious as
> to why they're there.
By having the -- there, it is clear that the strings are ref specs and not files
of such a name. (Who would want to store a file named HEAD~10 in their