Added --no-git

This commit is contained in:
Paul Gauthier 2023-06-23 13:44:24 -07:00
parent 5c432592cd
commit b5b0c1cbc2
2 changed files with 11 additions and 1 deletions

View file

@ -90,6 +90,7 @@ class Coder:
verbose=False,
assistant_output_color="blue",
stream=True,
use_git=True,
):
self.verbose = verbose
self.abs_fnames = set()
@ -123,7 +124,8 @@ class Coder:
self.commands = Commands(self.io, self)
self.set_repo(fnames)
if use_git:
self.set_repo(fnames)
if self.repo:
rel_repo_dir = os.path.relpath(self.repo.git_dir, os.getcwd())