# Re: \[PATCH v3 2/8\] branch: consider refs under 'update-refs'

- From: Junio C Hamano \<hidden\>
- Date: 2022-06-30 16:49:36 
- List: git
- Page: https://ratatoskr.run/git/2022/06/7951255
- Thread: https://ratatoskr.run/git/2022/06/7951255/t.md

```text
Derrick Stolee [ref] writes:

> I wonder how important such a situation is, though. But I'm willing
> to add the extra lookups in 'git gc' and 'git fsck' to make this a
> non-issue.

What I was hinting at was if some of this can be done by using a
ref, so that we do not have to touch "gc" or "fsck" at all.

As to the importance, I would say it is about the same importance as
being able to prevent the branches involved in the rebase from
touched in other worktrees.  We expect it to take sufficiently large
wallclock time from the beginning of a rebase and its finish to make
such a protection necessary, so an auto-gc may even be started from
other worktrees without our knowledge.

Thanks.

```
