Week 5 and 6: Refining patch series

REMOVING GOTO STATEMENTS In my previous post, I explained one of the improvements I was coding was removing goto statements of builtin/bisect-helper.c file. In my first approach, I got rid of all goto’s present in the file. They affected six functions and I made one commit per each one. After discussing with my mentor, only commits related to the patch series I am preparing will be sent and the rest will be done as improvement steps later on. [Read More]

Week 4: Introducing some improvements

NEW COMMITS I continued with the implementation of some suggestions and improvements this week. I focused on removing goto statements from builtin/bisect-helper.c file. For those not familiar with goto in C, it is a jump statement which transfers the program’s control from one statement to another (where some label is defined). The goto statement is generally discouraged in C, because it alters the sequential flow of logic that is one characteristic of C language. [Read More]

Week 3: preparation of patch series

NEW COMMITS Studying files related to git bisect I detected some parts that could be improved. After discussing my suggestions with my mentor, I included them in my working branch. Something I detected in builtin/bisect--helper.c and bisect.c was a mix of same evaluation conditions with different conventions. In some cases: if (!example_int_var) was used and in others: if (example_int_var == 0) I asked my mentor which one followed Git’s convention, which turned out to be the first one, and I fixed it. [Read More]

Week 2: Git rebasing and more!

Git rebase One of my tasks this second week was using interactive rebase to organize previous work. Interactive rebase, git rebase -i, is a useful and powerful command that allows you to change your commits in many ways such as editing, deleting, splitting and squashing. You must indicate how far back you want to rewrite commits by telling the command which commit to rebase onto. In my case: $git rebase -i HEAD~30 [Read More]

Week 1: Starting the internship!

This week as an Outreachy intern was mostly about setting up and clarifying some project concepts. Blog One of my first tasks consists on preparing this blog where I will share some internship experiences. Following my mentor’s advice, I used Gitlab Pages. Here, you can publish static websites using a bundle template, either copying an existing example or creating one from scratch. First, I tried with a bundle template based on Hugo, but I ran into some trouble publishing test posts and also some deprecated code warnings appearing in my local server that I couldn’t fix, so finally I downloaded another example based on the same template that worked. [Read More]