Skip to content

Add configurable whitespace replacement for branch names#5356

Open
SergioChan wants to merge 1 commit intojesseduffield:masterfrom
SergioChan:fix/issue-2663
Open

Add configurable whitespace replacement for branch names#5356
SergioChan wants to merge 1 commit intojesseduffield:masterfrom
SergioChan:fix/issue-2663

Conversation

@SergioChan
Copy link

Summary

  • add git.branchWhitespaceChar config with default -
  • use configured replacement when sanitizing branch names for create/move/rename flows
  • keep backward compatibility by falling back to - when config is empty
  • add unit tests for branch-name sanitization

Testing

  • go test ./pkg/gui/controllers/helpers ./pkg/gui/controllers ./pkg/config

Fixes #2663

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Branch Whitespace Char Option

1 participant