Subject: Re: Feature Request - GIT config - Reference value of init.defaultBranch in alias

From: Junio C Hamano <[email-masked]>
Date: Thu, 26 Jan 2023 08:21:01 -0800

Michal Aron <[email-masked]> writes:

> 1) global config having init.defaultBranch = master
> 2) global config having alias com = checkout [ init.defaultBranch ]

I do not think it is a good idea to special case just a single
configuration variable and come up with a special syntax to refer to
it.

Isn't

  [alias]
	com = !git checkout $(git config init.defaultBranch)

sufficient?