summaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorDavid Turner <dturner@twopensource.com>2015-09-01 02:13:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2015-09-01 17:37:39 (GMT)
commitce414b33ec0385a2aa701b6eaa712695ac13717a (patch)
treea9512ed58dbcebf97d7b7234e68de911d543784a /path.c
parent4e09cf2acf00c63848c365479c61d80af62eceba (diff)
downloadgit-ce414b33ec0385a2aa701b6eaa712695ac13717a.zip
git-ce414b33ec0385a2aa701b6eaa712695ac13717a.tar.gz
git-ce414b33ec0385a2aa701b6eaa712695ac13717a.tar.bz2
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 <dturner@twopensource.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/path.c b/path.c
index 7e959c9..65beb2d 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" },