aboutsummaryrefslogtreecommitdiff
path: root/gitweb/static/gitweb.css
diff options
context:
space:
mode:
authorPhillip Wood <phillip.wood@dunelm.org.uk>2026-03-26 14:16:59 +0000
committerJunio C Hamano <gitster@pobox.com>2026-03-26 08:20:50 -0700
commit758086869940c96585f05a0eefe6d2f24fd70630 (patch)
treecb1654b529d6bb6e2c7b83356d394e667cb67140 /gitweb/static/gitweb.css
parent8bad0e07e1eddff2268bc9be3368c9b5fee47915 (diff)
downloadgit-758086869940c96585f05a0eefe6d2f24fd70630.tar.xz
worktree: reject NULL worktree in get_worktree_git_dir()
This removes the final dependence on "the_repository" in get_worktree_git_dir(). The last commit removed only caller that passed a NULL worktree. get_worktree_git_dir() has the following callers: - branch.c:prepare_checked_out_branches() which loops over all worktrees. - builtin/fsck.c:cmd_fsck() which loops over all worktrees. - builtin/receive-pack.c:update_worktree() which is called from update() only when "worktree" is non-NULL. - builtin/worktree.c:validate_no_submodules() which is called from check_clean_worktree() and move_worktree(), both of which supply a non-NULL worktree. - reachable.c:add_rebase_files() which loops over all worktrees. - revision.c:add_index_objects_to_pending() which loops over all worktrees. - worktree.c:is_current_worktree() which expects a non-NULL worktree. Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'gitweb/static/gitweb.css')
0 files changed, 0 insertions, 0 deletions