mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Add git branch auto-approve rules
- Allow git branch command by default - Block destructive options: -d, -D, -m, -M, --delete, --force - Prevent accidental branch deletion and renaming
This commit is contained in:
+7
@@ -165,6 +165,13 @@ export const terminalChatAgentToolsConfiguration: IStringDictionary<IConfigurati
|
||||
// - See notes on `grep`
|
||||
'git grep': true,
|
||||
|
||||
// git branch
|
||||
// - `-d`, `-D`, `--delete`: Prevent branch deletion
|
||||
// - `-m`, `-M`: Prevent branch renaming
|
||||
// - `--force`: Generally dangerous
|
||||
'git branch': true,
|
||||
'/^git branch\\b.*-(d|D|m|M|-delete|-force)\\b/': false,
|
||||
|
||||
// #endregion
|
||||
|
||||
// #region PowerShell
|
||||
|
||||
Reference in New Issue
Block a user