Skip to content

Related to: #233Β #34554

@HIGDAWGG

Description

@HIGDAWGG

Related to: #233

This is a more specific request to add a new conditional include keyword in includeIf conditions that matches the hostname.

A common usage would be for dotfiles, for which the current approach using git requires separate branches and rebase.

Example:

[includeIf "hostname:FIRSTMACHINE"]
	path = /path/to/firstmachineconfig.inc
[includeIf "hostname:SECONDMACHINE"]
	path = /path/to/secondmachineconfig.inc

Originally posted by @diogo-rossi in gitgitgadget/git#1665

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions