Re: [PATCH v4 07/12] rebase: add --update-refs option
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 18, 2022, 19:35 UTC
- Message-ID
- <xmqq4jzefc3e.fsf@gitster.g>
- In-Reply-To
- <11aa9b43-adea-4e90-9c70-ab3579aa445f@github.com>
Derrick Stolee <derrickstolee@github.com> writes:
Show 8 quoted lines
> ... I think I should use "branches" here, but > keep the name "--update-refs". The biggest reason is that it provides > a nice parallel with the "update-ref" sequencer command. This command > allows updating _any_ ref, such as lightweight tags in refs/tags/* > or even refs in refs/my/namespace/*. > > The --update-refs option doesn't create the commands to update tags > or refs in places other than refs/heads/*.
I guess it would make the choice of "branch" the most appropriate.
I was hoping that we can repoint refs in private namespaces that are not branches with the option. But as long as the underlying "update-ref" instruction can be used by advanced users, that is OK.