Re: [PATCH v3 7/8] rebase: update refs from 'update-ref' commands
- From
Derrick Stolee <derrickstolee@github.com>
- Date
- Jun 29, 2022, 13:05 UTC
- Message-ID
- <f2af844e-fc6c-94fd-7cce-0451f57c6576@github.com>
- In-Reply-To
- <xmqq7d50ij6f.fsf@gitster.g>
On 6/28/22 5:15 PM, Junio C Hamano wrote:
> "Derrick Stolee via GitGitGadget" <gitgitgadget@gmail.com> writes:
...
> It would be nice to also have a test that makes sure that other > people will be prevented from checking out a branch whose tips may > be updated at the end.
Patch 3 adds the tests that 'git branch -f' cannot update these refs, but I could add 'git checkout' tests, too. They both run the same branch_checked_out() helper, but they are doing different things once they have "access" to the branch.
Thanks, -Stolee