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

Re: [GSoC] Hello Git

From
ZheNing Hu <adlternative@gmail.com>
Date
May 20, 2021, 08:09 UTC
Message-ID
<CAOLTT8QO6RsScmvxrvNo5SisWtm9BhfPiK3T8Ez-exwMwOUT_Q@mail.gmail.com>
In-Reply-To
<CAP8UFD2_PWKzwuYACH2MkjzCqO4VWm1EwReOZjgnsXAgpFcZtA@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> 于2021年5月20日周四 下午4:00写道:
Show 21 quoted lines
>
> On Thu, May 20, 2021 at 9:14 AM ZheNing Hu <adlternative@gmail.com> wrote:
> >
> > Christian Couder <christian.couder@gmail.com> 于2021年5月18日周二 下午10:32写道:
>
> > > > 2. "50cfe1f([GSOC] ref-filter: introduce enum atom_type)" has
> > > > been merged into the `next` branch, should we focus on the
> > > > performance optimization of `ref-filter.c`? Finally, we can build a
> > > > `format_cat_file_item()` similar to `format_ref_array_item()`,
> > > > which should not be difficult. And we have to make sure that the
> > > > performance of `cat-file --batch` is not lower than before.
> > >
> > > I wonder if format_ref_array_item() could not just be used by
> > > batch_object_write() like Olga did it in:
> > >
> > > https://github.com/git/git/pull/568/commits/f911b342ae6503dc9f6f8e3c7df316aa45d97bdf
> >
> > Thanks for the tip! Olga uses `format_cat_file_item()` in
>
> You mean `format_ref_array_item()` not `format_cat_file_item()`, right?
>
Yes. `format_ref_array_item()`.
Show 7 quoted lines
> > batch_object_write() , which may be the correct approach.
> > Before that, we have to make ref-filter support "%(contents:raw)"
> > (similar to Olga's "%(raw)") and "%(rest)".
>
> Yeah, please take a look, if you haven't already, at
> https://github.com/git/git/pull/568 where Olga already worked on that.
> It would likely help if you can reuse her work.

I have check them, I want to use "%(contents:raw)" instead of %(raw), https://github.com/gitgitgadget/git/pull/958 tell the reason, I will submit it later.

-- ZheNing Hu

Previous: Christian CouderNext: Christian Couder
Message 5 of 8 in “[GSoC] Hello Git”
  1. ZheNing HuMay 18, 2021
  2. Christian CouderMay 18, 2021
  3. ZheNing HuMay 20, 2021
  4. Christian CouderMay 20, 2021
  5. ZheNing HuMay 20, 2021
  6. Christian CouderMay 20, 2021
  7. Jiang XinMay 19, 2021
  8. ZheNing HuMay 20, 2021

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.