Re: [PATCH] branch: add 'branch.addCurrentBranchAsPrefix' config param
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 20, 2026, 15:59 UTC
- Message-ID
- <xmqq5x7r1k45.fsf@gitster.g>
- In-Reply-To
- <pull.2202.git.git.1771574833967.gitgitgadget@gmail.com>
"Yoann Valeri via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: VALERI Yoann <yoann.valeri@cea.fr> > > This patch adds a new configuration parameter for the branch creation > feature: 'branch.addCurrentBranchAsPrefix'. When set to true, if one
We generally do not add a configuration variable before the concept proves useful by being available as a command line option for some time. Have we had a command line option that corresponds to this feature for a year or two? Such a command line option will be necessary even after we decide to add a configuration variable to allow users to override the configured value per-invocation basis, e.g., "git branch --no-current-branch-prefix maint-2.54 v2.54.0", when you want to use the feature for most of your branches but want to deviate from that convention in selected cases.
Thanks.