]> git.ipfire.org Git - thirdparty/git.git/commit - worktree.h
worktree: introduce is_shared_symref()
authorRubén Justo <rjusto@gmail.com>
Sat, 25 Feb 2023 14:21:51 +0000 (15:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 25 Feb 2023 21:05:23 +0000 (13:05 -0800)
commit662078caacd450f93faa72e0e7d8580c42621415
tree08463245b6875b087d6feb08325928a523d2114a
parent56c8fb1e95377900ec9d53c07886022af0a5d3c2
worktree: introduce is_shared_symref()

Add a new function, is_shared_symref(), which contains the heart of
find_shared_symref().  Refactor find_shared_symref() to use the new
function is_shared_symref().

Soon, we will use is_shared_symref() to search for symref beyond
the first worktree that matches.

Signed-off-by: Rubén Justo <rjusto@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
worktree.c
worktree.h