# [GSoC] Blog: Refactoring in order to reduce Git’s global state

3 messages from 2025-06-19 to 2025-06-25. Participants: Ayush Chandekar, Lucas Seiki Oshiro.
Thread: https://gitlist.dev/t/63674

## Ayush Chandekar, 2025-06-19 19:54

Subject: [GSoC] Blog: Refactoring in order to reduce Git’s global state
Message-ID: <CAE7as+agjJm=taLgeracuApiGR1YgP5ZQhoHroTk6=Z0E9ww9g@mail.gmail.com>
URL: https://gitlist.dev/e/CAE7as%2BagjJm%3DtaLgeracuApiGR1YgP5ZQhoHroTk6%3DZ0E9ww9g%40mail.gmail.com

```
Hi everyone!

I’m a GSoC contributor working with Git this summer. I’ve been sharing
weekly progress updates on my blog:
https://ayu-ch.github.io/

So far, I’ve posted blogs for Week 1 and 2, and I’ll continue to
update it regularly throughout the program.

Feel free to reach out if you have any questions, suggestions, or want to chat.

Thanks!

```

## Lucas Seiki Oshiro, 2025-06-19 21:08

Subject: Re: [GSoC] Blog: Refactoring in order to reduce Git’s global state
Message-ID: <3079AF5C-CB54-4674-AF5C-24CDEF3854B9@gmail.com>
URL: https://gitlist.dev/e/3079AF5C-CB54-4674-AF5C-24CDEF3854B9%40gmail.com
In-Reply-To: <CAE7as+agjJm=taLgeracuApiGR1YgP5ZQhoHroTk6=Z0E9ww9g@mail.gmail.com>

```

> Hi everyone!

Hi, Ayush!

> I’m a GSoC contributor working with Git this summer

Me too :-)

> Feel free to reach out if you have any questions, suggestions, or want to chat.

I see that you want to get rid of some usages of 'the_repository'. I don't know
if it is in the scope of your project, but something that would help me in my
GSoC project is making the function is_bare_repository (environment.c) not
dependent of 'the_repository'.

More info here: https://lore.kernel.org/git/xmqq7c1genyp.fsf@gitster.g/

Thanks!


```

## Ayush Chandekar, 2025-06-25 15:14

Subject: Re: [GSoC] Blog: Refactoring in order to reduce Git’s global state
Message-ID: <CAE7as+bTKE5opov-Xn0P8R+cy+=-XRkX9Wpie_W0717XMF1b_w@mail.gmail.com>
URL: https://gitlist.dev/e/CAE7as%2BbTKE5opov-Xn0P8R%2Bcy%2B%3D-XRkX9Wpie_W0717XMF1b_w%40mail.gmail.com
In-Reply-To: <3079AF5C-CB54-4674-AF5C-24CDEF3854B9@gmail.com>

```
>
> I see that you want to get rid of some usages of 'the_repository'. I don't know
> if it is in the scope of your project, but something that would help me in my
> GSoC project is making the function is_bare_repository (environment.c) not
> dependent of 'the_repository'.
>
> More info here: https://lore.kernel.org/git/xmqq7c1genyp.fsf@gitster.g/
>
> Thanks!
>

Yes, this is related to the scope of my project.
I've had a look at the `is_bare_repository_cfg` variable, along with
the related functions and flow. At the moment, I'm occupied with a few
patches that I need to finish first. Once I've cleared those, I can
revisit this and try to get a better sense of how practical it is.

Thanks:)

```
