Thread (5 messages) flat view 5 messages, 2 authors, 2021-07-13

Re: [Patch 1/3] config.c: add conditional include based on worktree.

From: Johannes Schindelin <hidden>
Date: 2021-07-13 13:03:38

Hi Randall,

On Mon, 12 Jul 2021, randall.becker@nexbridge.ca wrote:
quoted hunk ↗ jump to hunk
@@ -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
 	else if (skip_prefix_mem(cond, cond_len, "onbranch:", &cond, &cond_len))
 		return include_by_branch(cond, cond_len);

--
2.32.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help