Re: [PATCH 2/2] format-patch: give --reroll-count a short synonym -v

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Junio C Hamano <gitster@xxxxxxxxx> writes:

> "Philip Oakley" <philipoakley@xxxxxxx> writes:
>
>>> +test_expect_success 'reroll count (-v)' '
>>> + rm -fr patches &&
>>> + git format-patch -o patches --cover-letter -v 4 master..side >list
>>> &&
>>
>> Shouldn't this be using the sticked form -v4 as described in the
>> commit message and gitcli?
>
> I personally do not care too deeply either way.

Actually, I do care. And in this case both should work.

    Separating argument from the option
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    You can write the mandatory option parameter to an option as a separate
    word on the command line.  That means that all the following uses work:

    ----------------------------
    $ git foo --long-opt=Arg
    $ git foo --long-opt Arg
    $ git foo -oArg
    $ git foo -o Arg
    ----------------------------

As "reroll-count" must always be followed by nth (in other words, it
is not optional), the following does not apply.

    However, this is *NOT* allowed for switches with an optional value, where the
    'sticked' form must be used:

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]