Skip to content

Commit 00e035e

Browse files
committed
CLI flag to disable git tracking
1 parent 017e0e3 commit 00e035e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

agentstack/main.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from agentstack.telemetry import track_cli_command, update_telemetry
1818
from agentstack.utils import get_version, term_color
1919
from agentstack import generation
20+
from agentstack import repo
2021
from agentstack.update import check_for_updates
2122

2223

@@ -163,6 +164,10 @@ def _main():
163164
# Set the debug flag
164165
conf.set_debug(args.debug)
165166

167+
# --no-git flag disables automatic git commits
168+
if args.no_git:
169+
repo.dont_track_changes()
170+
166171
# Handle version
167172
if args.version:
168173
log.info(f"AgentStack CLI version: {get_version()}")

0 commit comments

Comments
 (0)