SIGN IN SIGN UP

Pull git-flow prefix parsing into a config-level helper

Lift the inline parsing in FinishCmdObj into parseGitFlowPrefixMap on
ConfigCommands. The caller now does a direct map lookup against the
parsed prefix → branchType map instead of iterating the raw config
output and suffix-matching. This is preparation for adding git-flow-next
support, which needs to merge a second config schema into the same map.

One incidental change: a branch name without a slash now returns
NotAGitFlowBranch immediately, rather than falling through the
line loop with an empty suffix. Previously a configured
gitflow.prefix.X whose value happened to equal the entire branch
name could match — never a useful outcome.
H
Henry Maddocks committed
415015c66ab99600193f161c711df0e843ac5d0a
Parent: 53e39dc
Committed by Stefan Haller <stefan@haller-berlin.de> on 5/26/2026, 9:05:22 AM