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

Re: [GSoC] Git Blog 5

From
ZheNing Hu <adlternative@gmail.com>
Date
Jun 21, 2021, 13:17 UTC
Message-ID
<CAOLTT8TYn0x_wuDz7Nn1sKn0VKMyF320p1urxG1KHc+se4aiNA@mail.gmail.com>
In-Reply-To
<CAP8UFD0sHevUHB-ryUZm9Sxm=daKMwbqe6_Q7kc-pZAZN-eHWA@mail.gmail.com>
Christian Couder <christian.couder@gmail.com> 于2021年6月21日周一 下午8:07写道:
Show 32 quoted lines
>
> On Sun, Jun 20, 2021 at 6:53 PM ZheNing Hu <adlternative@gmail.com> wrote:
> >
> > My fifth week blog finished:
> > The web version is here:
> > https://adlternative.github.io/GSOC-Git-Blog-5/
>
> Great, thanks!
>
> > ## Week5: Tempting apple
> >
> > This week, I spent a lot of time working on the digital circuit
> > course design of the school. So this week's patches for git
> > was completed in a hurry. This week `Ævar Arnfjörð Bjarmason`
>
> s/was/were/
>
> > gave a lot of useful suggestions for the patch I wrote earlier.
>
> Maybe a link could help.
>
> > Some are related to code style improvements, and some are
> > better design ideas.
>
> [...]
>
> > But something like `fill_remote_ref_details()`, things gradually
> > become complicated and difficult. `fill_remote_ref_details()`.
>
> I think you can remove the above `fill_remote_ref_details()` as you
> are talking about it later.
>
OK.
Show 7 quoted lines
> > * FootNote:
> > 1. Why is there no `strbuf_empty()` in `strbuf` API? I think this may be
> > a very important thing.
>
> There is a 'size_t len' field in 'struct strbuf', so doing `buf->len
> == 0` works.
>

Really? So I think for reader who is learning strbuf api for the first time, the characteristics of empty strbuf are not so obvious. For example, `strbuf_slopbuf` may mean "empty". In any case, adding a macro is absolutely reasonable and will not affect performance.

#define strbuf_empty(sb) (sb->len == 0)
> > 2. Another thing worth mentioning is: I will have the school final exam
> > between July 7th and July 14th, I may be busy during this period.
>
> Ok, thanks for telling us in advance.
Correct the time deviation, the examination time is from July 1st to July 12th.

-- ZheNing Hu

Previous: Christian Couder
Message 3 of 3 in “[GSoC] Git Blog 5”
  1. ZheNing HuJun 20, 2021
  2. Christian CouderJun 21, 2021
  3. ZheNing HuJun 21, 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.