refactor: simplify commit logic and use context manager for git env

Co-authored-by: aider (vertex_ai/gemini-2.5-pro-exp-03-25) <noreply@aider.dev>
This commit is contained in:
Andrew Grigorev 2025-04-12 18:19:55 +03:00
parent 427f9c5b00
commit c56e836d22
2 changed files with 56 additions and 54 deletions

View file

@ -428,7 +428,10 @@ def get_parser(default_config_files, git_root):
"--attribute-author",
action=argparse.BooleanOptionalAction,
default=True,
help="Attribute aider code changes in the git author name (default: True, ignored if attribute-co-authored-by is True unless explicitly set)",
help=(
"Attribute aider code changes in the git author name (default: True). This is ignored"
" if --attribute-co-authored-by is True."
),
)
group.add_argument(
"--attribute-committer",