updating default.policy with better not_match (or, if it is too evident, removing not_match entirely)

This commit is contained in:
kevin zhao
2025-11-11 20:34:39 -05:00
parent b323a9248d
commit 0e6d965f65

View File

@@ -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"],
],
)