mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-29 16:54:59 +00:00
feat: Add --subtree-only argument and pass it to GitRepo
This commit is contained in:
parent
e66df79aaf
commit
88bfc74b52
2 changed files with 7 additions and 0 deletions
|
@ -319,6 +319,12 @@ def get_parser(default_config_files, git_root):
|
||||||
default=default_aiderignore_file,
|
default=default_aiderignore_file,
|
||||||
help="Specify the aider ignore file (default: .aiderignore in git root)",
|
help="Specify the aider ignore file (default: .aiderignore in git root)",
|
||||||
)
|
)
|
||||||
|
group.add_argument(
|
||||||
|
"--subtree-only",
|
||||||
|
action="store_true",
|
||||||
|
help="Only consider files in the current subtree of the git repository",
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
group.add_argument(
|
group.add_argument(
|
||||||
"--auto-commits",
|
"--auto-commits",
|
||||||
action=argparse.BooleanOptionalAction,
|
action=argparse.BooleanOptionalAction,
|
||||||
|
|
|
@ -473,6 +473,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
attribute_committer=args.attribute_committer,
|
attribute_committer=args.attribute_committer,
|
||||||
attribute_commit_message=args.attribute_commit_message,
|
attribute_commit_message=args.attribute_commit_message,
|
||||||
commit_prompt=args.commit_prompt,
|
commit_prompt=args.commit_prompt,
|
||||||
|
subtree_only=args.subtree_only,
|
||||||
)
|
)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue