Re: [PATCH v2 02/10] t/test-lib-functions.sh: allow to specify the tag name to test_commit
- From
Brandon Casey <drafnel@gmail.com>
- Date
- Jan 22, 2013, 09:43 UTC
- Message-ID
- <CA+sFfMeZ0VoySUtpYFZcjSxGQithhKUHarOr3TuioyjaYddsXg@mail.gmail.com>
- In-Reply-To
- <20130122080216.GC6085@elie.Belkin>
On Tue, Jan 22, 2013 at 12:02 AM, Jonathan Nieder <jrnieder@gmail.com> wrote:
> Brandon Casey wrote:
Show 23 quoted lines
>> --- a/t/test-lib-functions.sh
>> +++ b/t/test-lib-functions.sh
>> @@ -135,12 +135,13 @@ test_pause () {
>> fi
>> }
>>
>> -# Call test_commit with the arguments "<message> [<file> [<contents>]]"
>> +# Call test_commit with the arguments "<message> [<file> [<contents> [<tag>]]]"
>> #
>> # This will commit a file with the given contents and the given commit
>> -# message. It will also add a tag with <message> as name.
>> +# message. It will also add a tag with <message> as name unless <tag> is
>> +# given.
>> #
>> -# Both <file> and <contents> default to <message>.
>> +# <file>, <contents>, and <tag> all default to <message>.
>
> Simpler:
>
> # This will commit a file with the given contents and the given commit
> # message and tag the resulting commit with the given tag name.
> #
> # <file>, <contents>, and <tag> all default to <message>.Yes, a nice improvement.
Thanks, -Brandon