Subject: [PATCH v2 0/2] branch: add 'branch.addCurrentBranchAsPrefix' config param

From: "Yoann Valeri via GitGitGadget" <[email-masked]>
Date: Fri, 27 Feb 2026 15:48:51 +0000

Changes since v1:

 * Added a '--no-prefix' option to git branch

VALERI Yoann (2):
  branch: add 'branch.addCurrentBranchAsPrefix' config param
  branch: add a no-prefix option

 Documentation/config/branch.adoc |  7 +++++
 branch.c                         | 14 +++++++++
 branch.h                         |  8 +++++
 builtin/branch.c                 | 24 ++++++++++-----
 builtin/checkout.c               | 52 +++++++++++++++++++++++---------
 t/t2018-checkout-branch.sh       | 26 ++++++++++++++++
 t/t2060-switch.sh                | 26 ++++++++++++++++
 t/t3200-branch.sh                | 16 ++++++++++
 8 files changed, 150 insertions(+), 23 deletions(-)

base-commit: 7b2bccb0d58d4f24705bf985de1f4612e4cf06e5
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-git-2202%2Fvaleriyoann%2Fbranch-with-prefix-v2
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-git-2202/valeriyoann/branch-with-prefix-v2
Pull-Request: https://github.com/git/git/pull/2202

Range-diff vs v1:

 1:  30a6d8e195 = 1:  49641fb34c branch: add 'branch.addCurrentBranchAsPrefix' config param
 -:  ---------- > 2:  0fbdf031cb branch: add a no-prefix option

-- 
gitgitgadget