Re: [PATCH 3/3] worktree: reject NULL worktree in get_worktree_git_dir()
- From
- Phillip Wood <phillip.wood123@gmail.com>
- Date
- Mar 14, 2026, 20:09 UTC
- Message-ID
- <4649d374-59ad-4019-aacc-259245e18587@gmail.com>
- In-Reply-To
- <xmqqfr632yq8.fsf@gitster.g>
On 13/03/2026 21:42, Junio C Hamano wrote:
Show 8 quoted lines
> > <worktree.h> still has > > /* > * Return git dir of the worktree. Note that the path may be relative. > * If wt is NULL, git dir of current worktree is returned. > */ > char *get_worktree_git_dir(const struct worktree *wt);
Good catch, I'll fix that and send a re-roll
Thanks
Phillip