From: Michael Haggerty Date: Wed, 01 Jun 2016 15:51:31 GMT Subject: Re: [PATCH 4/4] reachable.c: make reachable reflogs for all per-worktree reflogs Message-ID: <574F0483.80803@alum.mit.edu> In-Reply-To: <20160601104519.16563-5-pclouds@gmail.com> On 06/01/2016 12:45 PM, Nguyễn Thái Ngọc Duy wrote: > [...] > +void add_worktree_reflogs_to_pending(struct rev_info *revs, unsigned flags, > + struct worktree *wt) > +{ > + struct all_refs_cb cb; > + char *path; > + > + cb.all_revs = revs; > + cb.all_flags = flags; > + path = xstrdup(worktree_git_path(wt, "logs/HEAD")); > + if (file_exists(path)) > + handle_one_reflog(path, NULL, 0, &cb); > + free(path); > + path = xstrdup(worktree_git_path(wt, "logs/refs/bisect")); > + if (file_exists(path)) > + handle_one_reflog(path, NULL, 0, &cb); > + free(path); > +} `refs/bisect` is not a single reference. It is a namespace that contains references with names like `refs/bisect/bad` and `refs/bisect/good-66106691a1b71e445fe5e4d6b8b043dffc7dfe4c`. > [...] Michael