NeogitOrg / neogit

An interactive and powerful Git interface for Neovim, inspired by Magit
MIT License
3.62k stars 218 forks source link

Add config feature 'initial_branch_name' #1379

Open fnune opened 3 weeks ago

fnune commented 3 weeks ago

This config feature allows users to specify an initial branch name that will be used as a get_user_input default when Neogit asks for a name for a new branch.

This is useful when working in teams with a branch naming convention. For example, teams may choose to prefix branches with a GitHub username. In that case, configuring Neogit with:

initial_branch_name = "myname/"

...will result in the popup being prepopulated with myname/, after which I can specify the branch name.