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

Re: [PATCH v6 0/6] ref-filter: remove die() calls from formatting logic

From
Оля Тележная <olyatelezhnaya@gmail.com>
Date
Mar 30, 2018, 06:42 UTC
Message-ID
<CAL21Bm=hcvk7LUKP4PY5FgXJFBDanf-=MMzFEMv-1paUHfojYg@mail.gmail.com>
In-Reply-To
<CAP8UFD2EjZ9-qeS-3oWWS8O8ayP92aXAxAb1qK9qjKKqDh7y2g@mail.gmail.com>
2018-03-29 17:41 GMT+03:00 Christian Couder <christian.couder@gmail.com>:
Show 11 quoted lines
> On Thu, Mar 29, 2018 at 2:52 PM, Оля Тележная <olyatelezhnaya@gmail.com> wrote:
>> Move helper function from strbuf to ref-filter.
>> Get rid of some memory leaks.
>
> The above seems to be the changes since v5. Usually in a cover letter
> (patch 0/X) there is both information about the goal of the patch
> series and the changes since last version.
>
> Repeating the goal in each version is useful for reviewers who might
> not have time to look at the patch series before, or who might have
> forgotten about it.
Thank you, I wasn't thinking about it that way. I agree, it's important.

Description: The main idea of the patch is, if you want to format the output by ref-filter, you should have an ability to work with errors and final message by yourself if you want to. So I decided not to touch signature of show_ref_array_item(), but to move all die() invocations to it. So that we could invoke format_ref_array_item() and be sure that we could handle errors by ourselves, and we also get formatted message so we could continue working with it if we want to.

Thank you, Olga

Previous: Eric Sunshine
Message 4 of 4 in “ref-filter: remove die() calls from formatting logic”
  1. 0/6 ref-filter: remove die() calls from formatting logicОля Тележная, Mar 29, 2018
  2. Christian CouderMar 29, 2018
  3. Eric SunshineMar 30, 2018
  4. Оля ТележнаяMar 30, 2018

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.