git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [Patch 0/3] includeIf series for worktrees
@ 2021-07-12 22:31 randall.becker
  2021-07-12 22:31 ` [Patch 1/3] config.c: add conditional include based on worktree randall.becker
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: randall.becker @ 2021-07-12 22:31 UTC (permalink / raw)
  To: git; +Cc: Randall S. Becker

From: "Randall S. Becker" <rsbecker@nexbridge.com>

Add support for includeIf with a worktree: prefix. This permits
conditional includes that are specific to individual worktrees.
The set of patches differ slightly from gitdir: as worktrees to not
have .git/ directories, so matching repo/ is somewhat problematic -
suggestings on dealing with that case are more than welcome.

Also added worktree test condition to verify that onbranch: works
in a worktree scenario as different from the main repository.

Randall S. Becker (3):
  config.c: add conditional include based on worktree.
  Documentation/config.txt: add worktree includeIf conditionals.
  t1305: add tests for includeIf:worktree.

 Documentation/config.txt  | 11 +++++-
 config.c                  | 63 ++++++++++++++++++++++++++++++
 t/t1305-config-include.sh | 81 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 154 insertions(+), 1 deletion(-)

-- 
2.32.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-14 17:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-12 22:31 [Patch 0/3] includeIf series for worktrees randall.becker
2021-07-12 22:31 ` [Patch 1/3] config.c: add conditional include based on worktree randall.becker
2021-07-13 13:03   ` Johannes Schindelin
2021-07-12 22:31 ` [Patch 2/3] Documentation/config.txt: add worktree includeIf conditionals randall.becker
2021-07-14  1:04   ` Junio C Hamano
2021-07-14 13:46     ` Randall S. Becker
2021-07-14 17:10       ` Junio C Hamano
2021-07-14 17:30         ` Randall S. Becker
2021-07-12 22:31 ` [Patch 3/3] t1305: add tests for includeIf:worktree randall.becker

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).