Re: [PATCH v4 04/15] scalar: 'register' sets recommended config and starts maintenance
- From
Elijah Newren <newren@gmail.com>
- Date
- Sep 28, 2021, 05:05 UTC
- Message-ID
- <CABPp-BGLcLKk1QLHtb6KpCOpn=M1-wwK6KD91rLCYbh6n5gTYA@mail.gmail.com>
- In-Reply-To
- <bbbc4c3339043bcd718dd2defcbaaaac2092227a.1631630356.git.gitgitgadget@gmail.com>
Sorry, one more thing...
On Tue, Sep 14, 2021 at 7:39 AM Derrick Stolee via GitGitGadget <gitgitgadget@gmail.com> wrote: ...
> + /* check if currently in enlistment root with src/ workdir */
> + strbuf_addstr(&path, "/src/.git");
> + if (is_git_directory(path.buf)) {...and...
> + /* check if currently in workdir */
> + strbuf_addstr(&path, "/.git");
> + if (is_git_directory(path.buf)) {Do these two checks suggest that only a primary worktree can be enlisted with scalar? (Is git-worktree generally incompatible?)