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

Re: [PATCHv2 2/2] git-remote-mediawiki: refactoring get_mw_pages function

From
SPSimon Perrat <simon.perrat@gmail.com>
Date
Jun 12, 2012, 09:56 UTC
Message-ID
<CA+hdvHhvnku_h95LT7se7JWOZh4cG2UB4AfwAs2jV1j2hefDQw@mail.gmail.com>
In-Reply-To
<vpqmx48x4o5.fsf@bauges.imag.fr>
2012/6/12 Matthieu Moy <Matthieu.Moy@grenoble-inp.fr>:
Show 27 quoted lines
> Simon Perrat <simon.perrat@gmail.com> writes:
>
>> 2012/6/11 Pavel Volek <Pavel.Volek@ensimag.imag.fr>:
>>
>>> +sub get_mw_all_pages {
>>> +       my $pages = shift;
>>> +       # No user-provided list, get the list of pages from the API.
>>> +       my $mw_pages = $mediawiki->list({
>>> +               action => 'query',
>>> +               list => 'allpages',
>>> +               aplimit => 500
>>> +       });
>>
>> Indentation should be 8 columns wide.
>
> More precisely, indentation in Git is done with tabs, and should display
> well with 1 tab == 8 characters.
>
> It is actually the case in Pavel's patch. When seen as patches, the
> first column is used for + and -, so the first tab is rendered as only 7
> characters, but that's normal.
>
> Or did I miss something?
>
> --
> Matthieu Moy
> http://www-verimag.imag.fr/~moy/

My bad, I was mistaken by my mailer, which displayed these two lines with a four-columns tab while the others were eight-columns.

Previous: Matthieu MoyNext: Matthieu Moy
Message 6 of 7 in “[PATCHv2 1/2] git-remote-mediawiki: import "File:" attachments”
  1. Pavel VolekJun 11, 2012
  2. 2/2 git-remote-mediawiki: refactoring get_mw_pages functionPavel Volek, Jun 11, 2012
  3. Simon PerratJun 12, 2012
  4. konglu@minatec.inpg.frJun 12, 2012
  5. Matthieu MoyJun 12, 2012
  6. Simon PerratJun 12, 2012
  7. Matthieu MoyJun 11, 2012

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.