git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH v3 0/3] branch: add prefixes to new branch names

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Mar 7, 2026, 07:05 UTC
Message-ID
<CAPig+cQu92SNS9mamfEwfdZMgqHeDh4Qn7HExgB9OzFiTZTHtA@mail.gmail.com>
In-Reply-To
<pull.2202.v3.git.git.1772802872.gitgitgadget@gmail.com>

On Fri, Mar 6, 2026 at 8:14 AM Yoann Valeri via GitGitGadget <gitgitgadget@gmail.com> wrote:

Show 6 quoted lines
> This PR adds a way to add prefixes to a new branch being created. The goal
> is mostly to ease the developer process of creating new branches by adding
> shortcuts that can be set either with a command-line option or with
> configuration parameter. This is useful especially when you have to do
> similar backports on multiple branches, removing a bit of the need for
> finding names or typing the names over and over again.

Sorry, but I'm having trouble understanding the value of this patch series. Neither the cover letter nor the patches themselves provide enough context to really understand how this feature would be helpful. Adding some real-world examples of how this simplifies your workflow *might* help sell the idea. Without such examples, it's difficult to imagine that you can't achieve the same with some simple aliases or tooling/scripting on your side.

My other concern is that this implementation is too special-case by assuming that users will only want to apply the "special value" as a prefix. It is easy to imagine some users instead wanting the special value added as a suffix or embedded. As such, a (possibly) more palatable implementation (assuming this feature is even desirable at all) might be to instead allow the user to specify some sort of format string into which the special value (or values) is interpolated.

Previous: Junio C HamanoNext: Junio C Hamano
Message 17 of 23 in “branch: add 'branch.addCurrentBranchAsPrefix' config param”
  1. branch: add 'branch.addCurrentBranchAsPrefix' config paramYoann Valeri via GitGitGadget, Feb 20, 2026
  2. Junio C HamanoFeb 20, 2026
  3. Junio C HamanoFeb 20, 2026
  4. 0/2 branch: add 'branch.addCurrentBranchAsPrefix' config paramYoann Valeri via GitGitGadget, Feb 27, 2026
  5. 1/2 branch: add 'branch.addCurrentBranchAsPrefix' config paramVALERI Yoann via GitGitGadget, Feb 27, 2026
  6. 2/2 branch: add a no-prefix optionVALERI Yoann via GitGitGadget, Feb 27, 2026
  7. Junio C HamanoFeb 27, 2026
  8. 0/3 branch: add prefixes to new branch namesYoann Valeri via GitGitGadget, Mar 6, 2026
  9. 1/3 branch: add '--name-prefix' optionVALERI Yoann via GitGitGadget, Mar 6, 2026
  10. Eric SunshineMar 7, 2026
  11. Junio C HamanoMar 8, 2026
  12. 2/3 branch: add 'branch.namePrefix' config paramVALERI Yoann via GitGitGadget, Mar 6, 2026
  13. Eric SunshineMar 7, 2026
  14. 3/3 branch: add '--no-name-prefix' optionVALERI Yoann via GitGitGadget, Mar 6, 2026
  15. Junio C HamanoMar 6, 2026
  16. Junio C HamanoMar 6, 2026
  17. Eric SunshineMar 7, 2026
  18. Junio C HamanoMar 8, 2026
  19. 0/2 branch: add prefixes to new branch namesYoann Valeri via GitGitGadget, Apr 9, 2026
  20. 1/2 branch: add '--name-prefix' optionVALERI Yoann via GitGitGadget, Apr 9, 2026
  21. 2/2 branch: add 'branch.namePrefix' config paramVALERI Yoann via GitGitGadget, Apr 9, 2026
  22. Junio C HamanoApr 9, 2026
  23. Junio C HamanoApr 9, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.