]> git.proxmox.com Git - libgit2.git/commit
refdb: introduce commondir awareness
authorPatrick Steinhardt <ps@pks.im>
Wed, 16 Sep 2015 14:09:24 +0000 (16:09 +0200)
committerPatrick Steinhardt <ps@pks.im>
Mon, 13 Feb 2017 09:28:15 +0000 (10:28 +0100)
commite0a6c28eb3977ffb675195878345025025e41a83
tree8b934e95e17a64f5dc1a95c214915551eec71c3d
parent71dd086195ff9f83b0225fc523a27807acc11ace
refdb: introduce commondir awareness

The refdb_fs_backend is not aware of the git commondir, which
stores common objects like the o bject database and packed/loose
refereensces when worktrees are used.

Make refdb_fs_backend aware of the common directory by
introducing a new commonpath variable that points to the actual
common path of the database and using it instead of the gitdir
for the mentioned objects.
src/refdb_fs.c
tests/worktree/refs.c [new file with mode: 0644]