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

Re: v3 [PATCH 2/2] status:introduce status.branch to enable --branch by default

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Jun 11, 2013, 07:51 UTC
Message-ID
<vpqy5ah84pt.fsf@anie.imag.fr>
In-Reply-To
<CALkWK0mQ9e1nR1jBgZKB6hgV+ptEXr225MchsVoM6514-KdqPg@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 11 quoted lines
> <y@ensimag.imag.fr> wrote:
>> [...]
>
> Good change.
>
>> diff --git a/t/t7508-status.sh b/t/t7508-status.sh
>> index 9a07f15..958617a 100755
>> --- a/t/t7508-status.sh
>> +++ b/t/t7508-status.sh
>
> I expected one test.  Two, at most.  This is a bit overzealous. 

I actually had this discussion with Jorge (in real life). I first thought this was too much, and I think we already removed one rendundant test. But actually, this should be "two at least", since you really want to test whether --[no-]branch takes precedence over status.branch or not, in addition to testing status.branch alone.

The last two tests are less important, but they also test something (in short: what happens when branch.status is set to something other than "true"). So I think it makes sense to keep them.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Ramkumar Ramachandra
Message 2 of 2 in “Re: v3 [PATCH 2/2] status:introduce status.branch to enable --branch by default”
  1. Ramkumar RamachandraJun 11, 2013
  2. Matthieu MoyJun 11, 2013

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.