* [GSOC] Introduction and microproject selection
@ 2025-02-04 17:50 Zejun Zhao
2025-02-05 7:47 ` Patrick Steinhardt
0 siblings, 1 reply; 2+ messages in thread
From: Zejun Zhao @ 2025-02-04 17:50 UTC (permalink / raw)
To: git
Hi everyone,
I'm Zejun Zhao, currently a first-year MSc student in Computer
Science. I love the idea of open source and have contributed to
several open source projects mostly about OS kernels.
I've been using Git for years and I'm familiar with Git's porcelain
commands. I'd like to dive into its internals now and contribute to
the project directly, which I believe will help me better understand
how Git works and what a well-organized open source community is like.
I have read this year's microprojects list and decided to go to the
"Fix Sign Comparison Warnings in Git's Codebase" idea. I'd like to
choose `apply.c` as my target of the idea. I followed the instructions
and found out that the `-Wsign-compare` warnings there are of
basically three types:
1. comparing a `length` of `size_t` type with a result of pointer
arithmetic of `int` type
2. comparing a `length` of `size_t` type with a `length` of `int` type
3. comparing a loop count `i` of `int` type with an unsigned loop bound
I think there can be three different strategies, one for each of the
above three types:
1. cast the result of pointer arithmetic to `size_t` type
2. try to change the type of the `length` to `size_t` (may fall back
to Strategy 1 if the variable is not guaranteed to be unsigned)
3. use a loop count `i` of `size_t` type
Please let me know if I had anything wrong or there is any other
point that I should look into to do better. Any feedback or guidance
is appreciated.
Best wishes,
Zejun Zhao
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [GSOC] Introduction and microproject selection
2025-02-04 17:50 [GSOC] Introduction and microproject selection Zejun Zhao
@ 2025-02-05 7:47 ` Patrick Steinhardt
0 siblings, 0 replies; 2+ messages in thread
From: Patrick Steinhardt @ 2025-02-05 7:47 UTC (permalink / raw)
To: Zejun Zhao; +Cc: git
On Wed, Feb 05, 2025 at 01:50:49AM +0800, Zejun Zhao wrote:
> Hi everyone,
>
> I'm Zejun Zhao, currently a first-year MSc student in Computer
> Science. I love the idea of open source and have contributed to
> several open source projects mostly about OS kernels.
Welcome to the community, and thanks for showing interest!
[snip]
> Please let me know if I had anything wrong or there is any other
> point that I should look into to do better. Any feedback or guidance
> is appreciated.
I see you've already sent a patch, so I'll be reviewing that patch
instead of answering here.
Patrick
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-02-05 7:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-04 17:50 [GSOC] Introduction and microproject selection Zejun Zhao
2025-02-05 7:47 ` Patrick Steinhardt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).