]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'pw/worktree-reduce-the-repository' into next
authorJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2026 21:04:21 +0000 (14:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Mar 2026 21:04:21 +0000 (14:04 -0700)
Reduce the reference to the_repository in the worktree subsystem.

* pw/worktree-reduce-the-repository:
  worktree: reject NULL worktree in get_worktree_git_dir()
  worktree add: stop reading ".git/HEAD"
  worktree: remove "the_repository" from is_current_worktree()

1  2 
builtin/worktree.c
worktree.c
worktree.h

Simple merge
diff --cc worktree.c
Simple merge
diff --cc worktree.h
Simple merge