git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Inquiry about feature request #1665: Conditional includeIf by hostname
@ 2025-08-18  9:29 Ayush Sharma
  2025-08-18 16:47 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ayush Sharma @ 2025-08-18  9:29 UTC (permalink / raw)
  To: git

Hello,

I am writing to inquire about a feature request, issue #1665 on the
gitgitgadget/git GitHub repository, which proposes adding a "hostname"
condition for conditional includes.

The proposal, opened by Diogo-Rossi on February 15, 2024, suggests a
new keyword to match the machine's hostname. As noted in the issue, a
primary use case for this would be to simplify dotfiles management
across different machines, which can be cumbersome with the current
approaches.


The example provided was:

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

I noticed that the issue is still open and does not appear to have any
assignees or linked pull requests at this time.


I am interested in this feature and would like to ask if this is a
direction the project would consider. If there is interest and no one
is currently working on this, I would be happy to begin investigating
and potentially work on a patch.

Thank you for your time and all your work on Git.

Best regards,

Ayush Sharma

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

* Re: Inquiry about feature request #1665: Conditional includeIf by hostname
  2025-08-18  9:29 Inquiry about feature request #1665: Conditional includeIf by hostname Ayush Sharma
@ 2025-08-18 16:47 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2025-08-18 16:47 UTC (permalink / raw)
  To: Ayush Sharma; +Cc: git

Ayush Sharma <ayusharma1706@gmail.com> writes:

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

A quick lore search finds this thread

https://lore.kernel.org/git/20240319183722.211300-1-ignacio@iencinas.com/

which looks somewhat relevant.


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

end of thread, other threads:[~2025-08-18 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18  9:29 Inquiry about feature request #1665: Conditional includeIf by hostname Ayush Sharma
2025-08-18 16:47 ` Junio C Hamano

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 NNTP newsgroup(s).