From ce414b33ec0385a2aa701b6eaa712695ac13717a Mon Sep 17 00:00:00 2001 From: David Turner Date: Mon, 31 Aug 2015 22:13:11 -0400 Subject: refs: make refs/bisect/* per-worktree We need the place we stick refs for bisects in progress to not be shared between worktrees. So we make the refs/bisect/ hierarchy per-worktree. The is_per_worktree_ref function and associated docs learn that refs/bisect/ is per-worktree, as does the git_path code in path.c The ref-packing functions learn that per-worktree refs should not be packed (since packed-refs is common rather than per-worktree). Since refs/bisect is per-worktree, logs/refs/bisect should be too. Signed-off-by: David Turner Signed-off-by: Junio C Hamano --- path.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'path.c') diff --git a/path.c b/path.c index 7e959c9cdd..65beb2dca3 100644 --- a/path.c +++ b/path.c @@ -107,9 +107,11 @@ static struct common_dir common_list[] = { { 0, 0, 1, "info/sparse-checkout" }, { 1, 1, 0, "logs" }, { 1, 1, 1, "logs/HEAD" }, + { 0, 1, 1, "logs/refs/bisect" }, { 0, 1, 0, "lost-found" }, { 0, 1, 0, "objects" }, { 0, 1, 0, "refs" }, + { 0, 1, 1, "refs/bisect" }, { 0, 1, 0, "remotes" }, { 0, 1, 0, "worktrees" }, { 0, 1, 0, "rr-cache" }, -- cgit v1.2.3