{"thread":{"id":"57815","subject":"Is there a reason why variable expansion is not allowed in git?","startedAt":"2022-04-29T12:30:54Z","lastAt":"2022-04-29T12:30:54Z","messageCount":1,"participants":["Jack Adrian Zappa"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"454615","messageId":"CAKepmagtT6=AzP5=-AhTtR1GbAb5nXJ8h24WsqTDm5B=7CSCyg@mail.gmail.com","threadId":"57815","inReplyTo":null,"subject":"Is there a reason why variable expansion is not allowed in git?","fromName":"Jack Adrian Zappa","fromEmail":"adrianh.bsc@gmail.com","sentAt":"2022-04-29T12:30:30Z","receivedAt":"2022-04-29T12:30:54Z","isPatch":false,"sender":{"key":"adrianh.bsc@gmail.com","avatar":null},"body":"I was trying to make my .gitconfig cleaner and easier to maintain, and\nI found that variable expansion isn't a thing.  Why is that?\n\nA use case that this would be useful is having several commands\nrequiring the same parameters which are long and hard to read and\nmaintain, such as a regex.  You can see my question on SO here:\nhttps://stackoverflow.com/questions/72005402/is-there-a-way-to-define-and-use-a-user-defined-variable-in-the-gitconfig-file\n\nAlthough an answer was submitted, it is a very roundabout way to do\nsomething that should be very simple.  There is the %(var) expansion\nfor paths available, so I would think that a similar simple text\nexpansion wouldn't be that difficult.  Perhaps by using curly braces\nrather than parenthesis?\n\nIs there a place where I could request this as a feature?\n\nCheers,\n\n\nJAZ\n"}]}