`get_default_branch()` returns the value of the `metapip.default_branch` option, which controls the default branch for all core PIP packages. `set_default_branch()` modifies it.
Value
`get_default_branch()`: character string of the current default branch.
`set_default_branch()`: the new default branch value (returned invisibly).
Details
The global default branch is the fallback used by all functions that accept a `branch` argument when no explicit branch is provided. Per-package overrides (set via [set_custom_branch()]) take precedence over this global default.
See also
Other branch configuration:
get_current_branches(),
set_custom_branch()