{"thread":{"id":"63975","subject":"Inquiry about feature request #1665: Conditional includeIf by hostname","startedAt":"2025-08-18T09:29:39Z","lastAt":"2025-08-18T16:47:34Z","messageCount":2,"participants":["Ayush Sharma","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"524338","messageId":"CAK8tCCJEAt33AMkPKZazcS1h9PKFig2ixCUC4V+D6--jyTuJnA@mail.gmail.com","threadId":"63975","inReplyTo":null,"subject":"Inquiry about feature request #1665: Conditional includeIf by hostname","fromName":"Ayush Sharma","fromEmail":"ayusharma1706@gmail.com","sentAt":"2025-08-18T09:29:26Z","receivedAt":"2025-08-18T09:29:39Z","isPatch":false,"sender":{"key":"ayusharma1706@gmail.com","avatar":null},"body":"Hello,\n\nI am writing to inquire about a feature request, issue #1665 on the\ngitgitgadget/git GitHub repository, which proposes adding a \"hostname\"\ncondition for conditional includes.\n\nThe proposal, opened by Diogo-Rossi on February 15, 2024, suggests a\nnew keyword to match the machine's hostname. As noted in the issue, a\nprimary use case for this would be to simplify dotfiles management\nacross different machines, which can be cumbersome with the current\napproaches.\n\n\nThe example provided was:\n\n[includeIf \"hostname:FIRSTMACHINE\"]\n    path = /path/to/firstmachineconfig.inc\n\nI noticed that the issue is still open and does not appear to have any\nassignees or linked pull requests at this time.\n\n\nI am interested in this feature and would like to ask if this is a\ndirection the project would consider. If there is interest and no one\nis currently working on this, I would be happy to begin investigating\nand potentially work on a patch.\n\nThank you for your time and all your work on Git.\n\nBest regards,\n\nAyush Sharma\n"},{"id":"524350","messageId":"xmqqqzx8k258.fsf@gitster.g","threadId":"63975","inReplyTo":"CAK8tCCJEAt33AMkPKZazcS1h9PKFig2ixCUC4V+D6--jyTuJnA@mail.gmail.com","subject":"Re: Inquiry about feature request #1665: Conditional includeIf by hostname","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2025-08-18T16:47:31Z","receivedAt":"2025-08-18T16:47:34Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Ayush Sharma <ayusharma1706@gmail.com> writes:\n\n> [includeIf \"hostname:FIRSTMACHINE\"]\n>     path = /path/to/firstmachineconfig.inc\n\nA quick lore search finds this thread\n\nhttps://lore.kernel.org/git/20240319183722.211300-1-ignacio@iencinas.com/\n\nwhich looks somewhat relevant.\n\n"}]}