Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 851 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 851 Bytes

Branch Warnings

Alerts you when you are working on a branch you have designated "protected" such as main or master. Can help to remember not to commit to the wrong branch.

screenshot

Extension Settings

This extension contributes the following settings:

  • branchwarnings.suppressPopup: Suppress the more intrusive warning dialog when first switching to a protected branch (only show the warning on the status bar).

  • branchwarnings.protectedBranches: An array of branch names. If it exists, warnings will be shown for these names.

By default, warnings will be given for branches titled "main" or "master". If you wish to warn when working on another branch such as "prerelease", add to your workspace or user settings:

"branchwarnings.protectedBranches": [ "main", "master", "prerelease", "releases/**" ]