mirror of
https://github.com/openai/codex.git
synced 2026-04-24 06:35:50 +00:00
updating default.policy with better not_match (or, if it is too evident, removing not_match entirely)
This commit is contained in:
@@ -5,8 +5,8 @@ prefix_rule(
|
||||
["git", "status", "--", "path/to/file"],
|
||||
],
|
||||
not_match = [
|
||||
["git", "statusx"],
|
||||
["git", "reset", "--hard"],
|
||||
["git", "-c", "pager.status=false", "status"],
|
||||
["git", "--no-optional-locks", "status"],
|
||||
],
|
||||
)
|
||||
|
||||
@@ -16,6 +16,10 @@ prefix_rule(
|
||||
match = [
|
||||
["git", "reset", "--hard"],
|
||||
],
|
||||
not_match = [
|
||||
["git", "reset", "--keep"],
|
||||
["git", "reset", "--merge"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -25,9 +29,6 @@ prefix_rule(
|
||||
["ls", "-l"],
|
||||
["ls", "-a", "."],
|
||||
],
|
||||
not_match = [
|
||||
["lsl"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -36,9 +37,6 @@ prefix_rule(
|
||||
["cat", "file.txt"],
|
||||
["cat", "-n", "README.md"],
|
||||
],
|
||||
not_match = [
|
||||
["catx"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -48,9 +46,6 @@ prefix_rule(
|
||||
["cp", "foo", "bar"],
|
||||
["cp", "-r", "src", "dest"],
|
||||
],
|
||||
not_match = [
|
||||
["cpp"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -60,7 +55,7 @@ prefix_rule(
|
||||
["head", "-n", "5", "CHANGELOG.md"],
|
||||
],
|
||||
not_match = [
|
||||
["headx"],
|
||||
["hea", "-n", "1,5p", "CHANGELOG.md"],
|
||||
],
|
||||
)
|
||||
|
||||
@@ -71,7 +66,7 @@ prefix_rule(
|
||||
["printenv", "PATH"],
|
||||
],
|
||||
not_match = [
|
||||
["printenvx"],
|
||||
["print", "-0"],
|
||||
],
|
||||
)
|
||||
|
||||
@@ -80,9 +75,6 @@ prefix_rule(
|
||||
match = [
|
||||
["pwd"],
|
||||
],
|
||||
not_match = [
|
||||
["pwdx"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -91,9 +83,6 @@ prefix_rule(
|
||||
["rg", "-n", "init"],
|
||||
["rg", "--files", "--max-depth", "2", "."],
|
||||
],
|
||||
not_match = [
|
||||
["rgx"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -103,9 +92,6 @@ prefix_rule(
|
||||
["sed", "-n", "s/a/b/", "file.txt"],
|
||||
["sed", "s/foo/bar/g", "file.txt"],
|
||||
],
|
||||
not_match = [
|
||||
["sedx"],
|
||||
],
|
||||
)
|
||||
|
||||
prefix_rule(
|
||||
@@ -114,7 +100,4 @@ prefix_rule(
|
||||
["which", "python3"],
|
||||
["which", "-a", "python3"],
|
||||
],
|
||||
not_match = [
|
||||
["whichx"],
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user