]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ps/worktree-refdb-initialization'
authorJunio C Hamano <gitster@pobox.com>
Fri, 26 Jan 2024 16:54:46 +0000 (08:54 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 26 Jan 2024 16:54:46 +0000 (08:54 -0800)
Instead of manually creating refs/ hierarchy on disk upon a
creation of a secondary worktree, which is only usable via the
files backend, use the refs API to populate it.

* ps/worktree-refdb-initialization:
  builtin/worktree: create refdb via ref backend
  worktree: expose interface to look up worktree by name
  builtin/worktree: move setup of commondir file earlier
  refs/files: skip creation of "refs/{heads,tags}" for worktrees
  setup: move creation of "refs/" into the files backend
  refs: prepare `refs_init_db()` for initializing worktree refs

1  2 
builtin/worktree.c
refs.c
refs.h
refs/files-backend.c
refs/packed-backend.c
setup.c
worktree.c

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