threads / discuss / 62900

[GSOC] Introduction and microproject selection

Subject: [GSOC] Introduction and microproject selection

## tl;dr

2 messages between Feb 4, 2025 and Feb 5, 2025.

replies: 1people: 2as markdown or json

Zejun Zhao· Feb 4, 2025, 17:50 UTC · lore
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

Patrick Steinhardt· Feb 5, 2025, 07:47 UTC · re: Zejun Zhao · lore

Re: [GSOC] Introduction and microproject selection

On Wed, Feb 05, 2025 at 01:50:49AM +0800, Zejun Zhao wrote:
Show 5 quoted lines
> 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

← back to recent threads