Re: [Patch 1/3] config.c: add conditional include based on worktree.
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jul 13, 2021, 13:03 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2107131502360.76@tvgsbejvaqbjf.bet>
- In-Reply-To
- <20210712223139.24409-2-randall.becker@nexbridge.ca>
Hi Randall,
On Mon, 12 Jul 2021, randall.becker@nexbridge.ca wrote:
Show 9 quoted lines
> @@ -300,6 +358,11 @@ static int include_condition_is_true(const struct config_options *opts, > return include_by_gitdir(opts, cond, cond_len, 0); > else if (skip_prefix_mem(cond, cond_len, "gitdir/i:", &cond, &cond_len)) > return include_by_gitdir(opts, cond, cond_len, 1); > + else if (skip_prefix_mem(cond, cond_len, "worktree:", &cond, &cond_len)) > + return include_by_worktree(opts, cond, cond_len, 0); > + else if (skip_prefix_mem(cond, cond_len, "worktree/i:", &cond, > + &cond_len)) > + return include_by_worktree(opts, cond, cond_len, 1);
Thank you for not forgetting the `/i` case.
Ciao, Dscho
Show 7 quoted lines
> else if (skip_prefix_mem(cond, cond_len, "onbranch:", &cond, &cond_len)) > return include_by_branch(cond, cond_len); > > -- > 2.32.0 > >