DEP-14-CON...RANCH-NAMES(1)
π NAME π
dep-14-convert-git-branch-names β bestie, this one converts your git repository branch names so they follow DEP-14. That's it, that's the whole job. β¨
πΈ DESCRIPTION πΈ
Okay so picture this: you've got a Debian packaging repo and your branch names are a mess. This little helper tool swoops in and helps you rename them β not by doing anything itself (more on that in a sec, this is the iconic part), but by printing out the exact git commands you need for your local repository, plus the salsa commands for your remote repository, so you can rename the branches and update the default git branch. π
Oh and it also prints the commands to create a gbp.conf with matching branch names, because of course it does, it's thorough like that. π
Here's the part that makes it chef's kiss: this script does not actually modify anything. Nothing. Zero. Nada. So bestie, feel free to run this script in any Debian packaging repository just to see what it outputs. It's giving "window shopping but for branch renames". π¦
Now why do we even need this? Real talk: renaming is needed because git defaults to main as the branch name. Previously git used master, and git-buildpackage still used master as the branch name. And that is not ideal for Debian packaging, because if you use the same default development branch names that upstream projects typically do, you may end up with branch name conflicts. π Messy. We don't do messy here.
DEP-14 (<https://dep-team.pages.debian.net/deps/dep14/>, status: candidate) says, and I quote:
In Debian this means that uploads to unstable and experimental should be prepared either in thedebian/latestbranch or respectively in thedebian/unstableanddebian/experimentalbranches.
and also:
The helper tools that do create those repositories should use a command like git symbolic-ref HEAD refs/heads/debian/latest to update HEAD to point to the desired branch.
See? It's all right there. DEP-14 said what it said. π
β¨ SYNOPSIS β¨
dep-14-convert-git-branch-names [options]
π«Ά Options
--packaging-branch <name>β the branch for your main packaging, like for example'debian/latest'π--debugβ shows you debug information while it's running, for when you wanna see the behind-the-scenes π-h,--helpβ displays this help message, classic move π--versionβ displays version information, so you know exactly what you're working with β
π₯ SEE ALSO π₯
okay that's the whole page bestie, go forth and rename those branches responsibly π β¨
this was brought to you by the DEBIAN crew, filed under Debian Utilities β mwah, ily, take care of your HEAD refs ππ
π¦ where this page comes from
- debian trixie: devscripts 2.25.15+deb13u1 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.19-2.fc43 Β· GPL-2.0-or-later
- fedora 43: devscripts 2.25.33-1.fc43 Β· GPL-2.0-or-later
- fedora 44: devscripts 2.26.5-1.fc44 Β· GPL-2.0-or-later
- ubuntu questing: devscripts 2.25.19ubuntu2
- ubuntu resolute: devscripts 2.26.7 Β· GPL-2.0-or-later
- ubuntu stonking: devscripts 2.26.11ubuntu1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms