sillyspec 3.12.3 → 3.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -301,6 +301,8 @@ function isSingleCommandReadonly(cmd, extraReadonlyCommands = []) {
|
|
|
301
301
|
if (READONLY_GIT_SUBS.has(sub)) return true
|
|
302
302
|
// git stash list
|
|
303
303
|
if (sub === 'stash' && (parts[2] === 'list' || parts.length === 2)) return true
|
|
304
|
+
// git worktree 管理(list/add/remove)放行
|
|
305
|
+
if (sub === 'worktree') return true
|
|
304
306
|
return false
|
|
305
307
|
}
|
|
306
308
|
|