Introduction

It is strongly recommended that people who want to apply to the Git project for the Google Summer of Code (GSoC), Outreachy, or other such mentoring programs, called “applicants” in this document, submit a small code-related patch to the Git project as part of their application. We call the whole process of submitting such a small code-related patch a “microproject”.

People who want to get involved in Git development outside mentoring programs can also benefit from information on this page to get started, though it might be a bit less relevant to them. If they want, they can use something like “[FirstTimer]”, “[Newbie]”, “[Newcomer]” instead of “[GSoC]” or “[Outreachy]” in the emails they send.

Anyway if you want to work on a microproject, or more generally if you want to start getting involved in Git development, please read on all the rest of this page.

What is a microproject?

Think of these microprojects as the “Hello, world” of getting involved with the Git project; the coding aspect of the change can be almost trivial, but to make the change the applicant has to become familiar with many of the practical aspects of working on the Git project.

Git development is based on sending successive versions of patches or patch series to the mailing list until they are considered good and correct by the reviewers and Junio Hamano, the maintainer, who will merge them. This process usually takes quite some time. By sending drafts of your microproject patches to the mailing list long before the deadline, you can show us that you are willing and able to work well using the Git development process.

It is expected that what you send will need several rounds of reviews and discussions. If you are not sure at all about a patch you can put “[GSoC][RFC/PATCH]” or “[Outreachy][RFC/PATCH]”, depending on the mentoring program you are applying for, at the beginning of its subject.

Consider a sample email thread, which shows how a developer proposed a change and a patch to implement it. The problem being solved, the design of the proposed solution, and the implementation of that design were all reviewed and discussed, and after several iterations an improved version of the patch was accepted into our codebase. As a GSoC contributor, or Outreachy intern, you will be playing the role of the developer and engaging in a similar discussion. Get familar with the flow, need for clarity on both sides (i.e. you need to clearly defend your design, and need to ask for clarifications when questions/suggestions you are offered are not clear enough), the pace at which the discussion takes place, and the general tone of the discussion, to learn what is expected of you.

Summary of the steps needed to complete a microproject

To complete a microproject, you will have to go through approximately the following steps:

The coding part of the microproject should be very small (say, 10-30 minutes). We don’t require that your patch be accepted into the “master” branch by the time of your formal application; we mostly want to see that you have a basic level of competence and especially the ability to interact with the other Git developers.

Only ONE quality focused microproject per applicant

Applicants please attempt only ONE microproject. We want quality, not quantity! (Also, it takes work to collect the ideas, and it would be nice to have enough microprojects for everybody.)

Change only a few files

This means that for a microproject that consists in refactoring or rewriting a small amount of code, your patch should change only ONE file, or perhaps 2 files if they are closely related, like “foo.c” and “foo.h”.

If you change a test file, the title of your patch (after the “[GSoC][PATCH …]” or “[Outreachy][PATCH …]” part) should start with “tXXXX: “ where tXXXX is the start of the filename of the test script you change. If you change “foo.c” or “foo.h”, the title of your patch should probably start with “foo: “.

If you create a function to refactor existing code, it’s possible that more files would be changed, but the changes should be trivial in most of them.

In general it’s a good idea to check on the mailing list archive (lore.kernel.org and Public Inbox are your friends) what other GSoC or Outreachy applicants attempting a microproject have already been told this year or any previous year, as hopefully it will help you avoid some mistakes. As some microproject ideas haven’t changed for years, some similar microprojects might have been attempted many times already and you can learn a lot from these attempts.

The more you research your microproject and take advantage of that, the more confident we can be that you will be able to solve many problems when working on your real GSoC or Outreachy project. So it’s a very good thing to show that you have researched your microproject and taken into account what you have found.

After it’s done, work on different things

If you’ve already done a microproject and are itching to do more, then get involved in other ways, like finding and fixing other problems in the code, or improving the documentation or code comments, or helping to review other people’s patches on the mailing list, or answering questions on the mailing list or in IRC, or writing new tests, etc., etc. In short, start doing things that other Git developers do! Alternatively you can of course focus on your project proposal.

How to find ideas for microprojects

First check the specific page(s) or information about Git microprojects related to your program that should have been published on this site or on the GSoC or Outreachy site. But then still read on everything below!

It’s also possible that we haven’t taken the time to put up a page listing microprojects ideas for your program. The pages we used to create for that were named “XXXX Applicant Microprojects” where XXXX is the program name and a date, for example “SoC 2016 Applicant Microprojects” for the GSoC in 2016, or “Outreachy Winter 2021-2022 Applicant Microprojects” for Outreachy in 2021-2022. See the following directory to find these old pages that might still be useful:

https://git.github.io/Historical-SoC-Outreachy/

Any small code-related change would be suitable for a microproject. Just remember to keep the change small! It is much better for you to finish a small but complete change than to try something too ambitious and not get it done.

Though we don’t require that your patch be accepted into the “master” branch by the time of your formal application, we still expect that a good number of iterations between discussions and improvements has happened. Don’t be surprised if we reject your application after you send something out of the blue just before the deadline, even if what you did is very significant and/or of high quality!

If you don’t like for some reason the microprojects that are proposed related to your program, or if you just want more choice, you may find other ideas for microprojects by searching the mailing list (https://public-inbox.org/git/) or the code base itself. In the code base you could search the code itself or the tests (in the “t” directory).

When you find something you are interested to work on, please ask first on the mailing list if it’s worth doing and if it’s appropriate for a microproject before starting to work on what you find. Even if it looks straightforward, there could be hidden reasons why it is too difficult or just inappropriate.

You can also always send an email to the mailing list to ask if people have other microproject ideas, but before that please check that someone participating in the same program as you has not already done that recently.

Searching for bug reports

Git has no official bug tracker or bug list. On https://git-scm.com/community we recommend that people report bugs directly on the Git mailing list.

On the mailing list people sending bug reports are likely to use things like “[BUG]”, “bug”, “issue” or “crash” in the subject of their emails. So it can be a good idea to search for that.

Most bugs are usually fixed soon after they are reported or are well known behaviors or limitations though. So don’t expect too much.

GitGitGadget, which can be used to send patches from a GitHub repository to the Git mailing list, has its own list of Git issues on:

https://github.com/gitgitgadget/git/issues

There are even a couple ideas marked as #leftoverbits, i.e. curated and copied from the Git mailing list see:

https://github.com/gitgitgadget/git/issues?q=is%3Aissue+is%3Aopen+label%3Aleftoverbits

And there are a couple of project ideas marked as “good first issue”:

https://github.com/gitgitgadget/git/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22

that might be interesting to look at.

There is another non official bug tracker dedicated to Git issues on:

https://crbug.com/git

Git for Windows also has it’s own issue tracker:

https://github.com/git-for-windows/git/issues

But of course the Git for Windows issues might not apply to Git itself. Please check that before talking about them on the Git mailing list.

In general it’s a very good idea to check that you can reproduce the bug on the latest version of Git before working on it.

Also some bugs are difficult to understand and require too much or too difficult work for a microproject, so don’t spend too much time on them if it appears that they might not be simple to fix, and don’t hesitate to ask on the mailing list if they are a good microproject.

Searching for #leftoverbits in the mailing list

People have recently started to add “#leftoverbits” to their emails when they think further small work on the topic could be useful.

You can easily search that using:

https://public-inbox.org/git/?q=leftoverbits

But don’t forget to search to check if what you find has already been addressed. If it has not been addressed, please ask first on the mailing list if it’s a good idea to work on that.

As for bugs, and many things really, you can also ask if you are not sure it’s simple enough to fix.

Searching the code base itself

Your best bet is probably to search for strings like “FIXME”, “TODO”, “NEEDSWORK”, or maybe “NEED-WORK”, and “BUG” (though not the “BUG()” macro).

You can also search (git grep is your friend) for common patterns in the code and try to find or create a function to refactor them.

Searching the tests

Tests are in the “t” directory and can be run by launching “make” in this directory. Doing that you will see that there are a number of tests that are marked with “# TODO known breakage”, like for example:

“not ok 28 - git checkout -f: replace submodule with a directory must fail # TODO known breakage

These tests start with “test_expect_failure” instead of “test_expect_success”. They document that something is not working as it should perhaps be working. And it might be an interesting microproject to fix that.

Note that it is especially wise to first search the mailing list and then ask on the list before working on one of these “test_expect_failure”, because if we bothered to document a failure but not fix it, that is often because the fix is non-trivial.

You could also check if some commands have no test for some of their options and it could be an interesting microproject to add a test for one of those options.

Searching the mailing list for other ideas

You can search the mailing list for words like “low hanging fruit”, or “low-hanging fruits”, “hint, hint”, “later”, “we should”, “I plan to”…

How to introduce yourself to the community

It’s likely that you will introduce yourself to the community around the same time you are going to start working on a micro-project.

Tell us about you, or not

We don’t require you to send us a special introductory email or to tell us about your skills, interests, experience, background, etc. Feel free to tell us what you want about yourself if you wish though.

Specify the mentoring program in the subject

But please, make it clear that you are interested in a specific mentoring program and use the right tag, like “[GSoC]”, “[Outreachy]”, etc at the beginning of the subject of your emails.

Thoroughly check your eligibility in the program

Before you introduce yourself, it’s very important that you thoroughly check as soon as possible that you are eligible for the mentoring program you are interested in.

This is especially important for Outreachy, which has strict rules and is enforcing them. Their rules are available on:

https://www.outreachy.org/docs/applicant/#eligibility

Especially if you are a student, please check the section about the rules for students, and especially check this one:

“University students must have 42 consecutive days free from school and exams during the internship period.”

The Outreachy organizers will check this rule with your university. They will disqualify you if there is any requirement, especially this one, that you don’t meet.

If you start applying to the Git project, this will deter others from applying. We usually have very few projects and can only accept very few applicants. So if others want to apply, they know they will have to compete with you and possibly others, and they might prefer to find another project with less competition.

It happened recently that only two people applied for a project we proposed, and both were later found to not be eligible because of their university requirements. So in the end, we couldn’t mentor anyone for the project we proposed, which is bad for everyone.

So please thoroughly check your eligibility before introducing yourself, and please confirm in your introduction that you have checked all the requirements and that you indeed meet them all.

Don’t ask us to find a micro-project for you

As we usually don’t know your interests, skills, experience, background, etc, it’s hard for us to select a micro-project for you, and it’s part of your job as an applicant to research a good micro-project for you. It will show us that you will be able to select a good project for you and properly research it.

Do ask for help, but be specific

You can ask for help if there are things you don’t understand in a micro-project description, or if you have some trouble working on your micro-project or even finding a micro-project. But please be very specific in your questions and tell us in detail what you searched or tried, what you expected and what didn’t work as you expected. Something like “I couldn’t find a good micro-project for me”, for example, doesn’t tell us much, and doesn’t give us any idea about how we could help you.

Why it’s better to introduce yourself by directly emailing the mailing list

We understand that some people are a bit shy or reluctant to email the mailing list directly and interact with people there, but that’s something that is required to contribute to Git. So you will have to do it at one point anyway.

Also please understand that there are often a significant number of people interested in participating in programs like GSoC or Outreachy, and mentors prefer to answer questions once and for all on the mailing list instead of many times privately to everyone interested in participating.

Emailing mentors privately will not give you any advantage. On the contrary it might just signal potential mentors that you are not very willing to interact with the mailing list. It will also increase the workload of mentors for possibly no good reason which is not something they like.

Mentors will be willing to properly mentor those who have been selected to participate in the mentoring program, but until then they cannot, and don’t want to, privately mentor several people to help them be selected. It wouldn’t be fair to those who are doing the right thing and interacting with the mailing list directly.

Some conventions and tips

It can be intimidating to introduce yourself or send your first patch to the mailing list, but we hope that the following conventions and tips will help you get properly started.

Start your own email thread

When you introduce yourself to the Git mailing list, please start your own email thread instead of replying to a thread where someone else introduced themself, or worse a completely unrelated thread.

Use a tag, like [GSoC], [Outreachy], etc, in your subject

Yeah, we insist on this because many applicants don’t do it despite the fact that it helps everyone, especially themselves.

It helps because efficiently searching the mailing list is not so easy. Having such a tag at the start in the subject makes it much easier to find what applicants or contributors from a program have done. And applicants should be very interested in searching for what other applicants or contributors participating in GSoC or Outreachy have been doing in the past, for example what kind of microproject they have chosen, how their proposal looked like, etc.

Reply inline

Many people these days use the “top posting” posting style, but we usually reply inline instead, which is also called the “interleaved posting” posting style. See https://en.wikipedia.org/wiki/Posting_style for more information about these styles.

So please don’t just reply on top of the email you are replying to. Instead, just expand the email you are replying to and put your comments in it.

Put ALL the co-mentors in To: or Cc:

When emailing about something related to your program (GSoC or Outreachy or …) and when you know who are your possible (co-)mentors, put them all in To: or Cc:. If you email or reply and forget to put one of your (possible) co-mentors in the loop, it can only create confusion or additional useless synchronization work for your mentors and ultimately make it harder for them to help you.

If you have something personal to say to only one of your mentors, it’s Ok to not put others in To: or Cc:, but otherwise, please, make it a habit to put them all in the loop when you contact them.

Tip: just use “Reply-all” when you reply to an email.

Don’t be formal

We are used to not using titles, like “Sir”, “Mr”, etc, and not being formal. Yeah, it can be difficult, as in some areas or countries, people are supposed to be formal with mentors, professors or people older or more experienced than themself. But please try to be as informal as us.

Tell us your first name or how you want to be called

Most people on the mailing list like to call each other and to be called using their first name, or sometimes a nickname. So that’s how we would like to call you. So let us know your firstname or how you want to be called.

Yeah, sometimes it seems obvious, but sometimes it’s really not, as for example in some countries people commonly have 4 different names, in others they usually mention their first name after their last name (instead of before), in yet others, first names are usually abbreviated in non obvious ways, etc.

So please make it clear.

Tell us the pronouns we should use

Again, yeah, it’s often obvious, but often it’s not. So please tell us if we should use “He/him/his”, “She/her/her(s)”, “They/them/their(s)”, or another pronoun to talk about you.

Confirm that you pass the requirements

Programs like Outreachy or GSoC usually have requirements for applicants. Sometimes applicants have to be accepted by the program organizers after they have shown they satisfy the requirements.

In any case it’s interesting for us and others to know soon how you currently stand regarding the requirements and maybe the acceptance process.

See also the “Thoroughly check your eligibility in the program” section above.

Tell us what steps you have already taken

We can better help you and suggest the next steps for you to take if we know what steps you have already taken.

So if you have read this documentation, tell us. If you have already started or finished a Git tutorial, tell us too. If you have only built Git from source, tell us. If you have already sent patches on the Git mailing list to improve Git, tell us.

We don’t need to know about the computer science knowledge or C or shell language programming experience you have, but telling us where you are regarding developing Git is definitively helpful.