]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'pw/worktree-reduce-the-repository'
authorJunio C Hamano <gitster@pobox.com>
Fri, 3 Apr 2026 20:01:09 +0000 (13:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 3 Apr 2026 20:01:09 +0000 (13:01 -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