Thread (150 messages) 150 messages, 4 authors, 2024-11-20

Re: [PATCH v5 7/9] ref: enhance escape situation for worktrees

From: Patrick Steinhardt <hidden>
Date: 2024-10-07 06:58:44

On Sun, Sep 29, 2024 at 03:17:01PM +0800, shejialuo wrote:
We do allow users to use "git symbolic-ref" to create symrefs which
point to one of the linked worktrees from the primary worktree or one of
the linked worktrees.

We should not info the user about the escape for above situation. So,
enhance "files_fsck_symref_target" function to check whether the "referent"
starts with the "worktrees/" to make sure that we won't warn the user
when symrefs point to "referent" in the linked worktrees.
Shouldn't this commit be squashed into the former one, as it immediately
fixes an edge case that was introduced with the parent commit?

Patrick
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help