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

Re: [PATCH 1/3] t3034: add rename threshold tests

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 24, 2016, 00:55 UTC
Message-ID
<CAPig+cR_p2aKU9VRpiyomdOo+Ucnxr82dh2uqBaR6TTsN9B4qw@mail.gmail.com>
In-Reply-To
<CAPig+cQ+MF7Nsvp7jASXPtPjNWT_g865ot45Y1Q347Y1iCDeYA@mail.gmail.com>
On Tue, Feb 23, 2016 at 7:50 PM, Eric Sunshine <sunshine@sunshineco.com> wrote:
Show 9 quoted lines
> On Tue, Feb 23, 2016 at 6:48 PM, Felipe Gonçalves Assis
> <felipeg.assis@gmail.com> wrote:
>> +       if [ 50 -le "$th0" ]; then
>> +               check_50=check_threshold_0
>> +       elif [ 50 -le "$th1" ]; then
>> +               check_50=check_threshold_1
>> +       elif [ 50 -le "$th2" ]; then
>> +               check_50=check_threshold_2
>> +       fi &&
Oh, I totally forgot to mention a few style issues:
1. use 'test' rather than '['
2. place 'then' on its own line
3. drop semicolon
    if test 50 -le "$th0"
    then
        ...
    elif test ...
    then
        ...
Previous: Eric SunshineNext: Felipe Gonçalves Assis
Message 4 of 7 in “Tests for merge-recursive rename options”
  1. 0/3 Tests for merge-recursive rename optionsFelipe Gonçalves Assis, Feb 23, 2016
  2. 1/3 t3034: add rename threshold testsFelipe Gonçalves Assis, Feb 23, 2016
  3. Eric SunshineFeb 24, 2016
  4. Eric SunshineFeb 24, 2016
  5. Felipe Gonçalves AssisFeb 24, 2016
  6. 2/3 t3034: test option to disable renamesFelipe Gonçalves Assis, Feb 23, 2016
  7. 3/3 t3034: test deprecated interfaceFelipe Gonçalves Assis, Feb 23, 2016

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.