As I talked in my previous blog, I sent two patches to the mailing list:

This week, I focused on removing the global variables comment_line_str, comment_line_str_to_free and auto_comment_line_char, aiming to replace them with a functions which uses repo_config_get_string_tmp() from config.c.

There was one specific test case which kept on failing: when core.commentchar is set to auto and we try to amend a commit message that begins with #foo. Previously, this relied on the global comment_line_str. To replace that, I needed a way to pass the computed prefix through various functions. My new function accepts a strbuf containing the commit message, analyzes it, and returns the appropriate prefix. However, in several call sites, it’s not feasible to pass the strbuf directly, which leads to incorrect prefix computation. To work around this, I attempted passing the prefix string through the relevant functions instead.

You can see my attempts on my fork. I think I’ll need to spend more time on this problem and will likely pick up another task alongside it.

Also, my laptop’s motherboard died this week. I’m currently using a temporary laptop, but I may need to purchase a new one soon, we’ll see how it goes.

-Ayush:)


<
Previous Post
GSoC : Community Bonding Period
>
Blog Archive
Archive of all previous blog posts