Skip to content

Commit cead8bb

Browse files
committed
rg specific override is not needed with double dash syntax
1 parent bbb575d commit cead8bb

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

aider/tools/grep.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ def execute(
166166
if tool_name == "grep":
167167
cmd_args.append("--exclude-dir=.git")
168168

169-
# Pattern may start with a dash, this will make rg interpret it as
170-
# an option, "-e" works around this.
171-
if tool_name == "rg":
172-
cmd_args.extend(["-e"])
173-
174169
# Add pattern and directory path
175170
cmd_args.extend(["--", pattern, str(search_dir_path)])
176171

0 commit comments

Comments
 (0)