]> git.ipfire.org Git - thirdparty/git.git/commit
worktree: rename get_worktree_from_repository()
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Fri, 1 May 2026 15:20:00 +0000 (16:20 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 May 2026 22:02:45 +0000 (07:02 +0900)
commit8547908eb30d8b3ee074081f89fa29c6d6d077c2
tree91f3b906e081a419769974d71b883ba5e267b495
parent94f057755b7941b321fd11fec1b2e3ca5313a4e0
worktree: rename get_worktree_from_repository()

get_worktree_from_repository() returns a struct worktree that
describes the worktree that the repository argument would operate
on. Since 0f779147602 (worktree: remove "the_repository" from
is_current_worktree(), 2026-03-26) that worktree is always the
"current" worktree. Change the name to get_current_worktee() to
reflect better what the function does.

Suggested-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
worktree.c
worktree.h
wt-status.c