feat: add config option to disable automatic Git commands#264
Open
ezyang wants to merge 1 commit intogh/ezyang/200/basefrom
Open
feat: add config option to disable automatic Git commands#264ezyang wants to merge 1 commit intogh/ezyang/200/basefrom
ezyang wants to merge 1 commit intogh/ezyang/200/basefrom
Conversation
ezyang
added a commit
that referenced
this pull request
Apr 18, 2025
codemcp makes does Git commits to keep track of writes and edits it makes to files, as well as to snapshot state of repo before and after it runs commands. Add a configuration option to codemcprc that optionally disables all of this, so that we NEVER issue any git commands automatically. ```git-revs 76f826f (Base revision) eaef646 Add git.enabled to default configuration d42c38c Add git_operations_enabled function to check if Git operations are enabled 3d05ab9 Import git_operations_enabled from config 4211fdc Add check for disabled Git operations in create_commit_reference 274fe31 Update commit_changes docstring to mention git operations disabled case d0ad8d4 Add check for disabled Git operations in commit_changes ed91c17 Import git_operations_enabled from config 55c638f Update check_git_tracking_for_existing_file to handle disabled Git operations fac57d5 Add missing logging import e9f9ee1 Fix duplicate logging import ad2a7d6 Add git.enabled config option to README HEAD Auto-commit format changes ``` codemcp-id: 274-feat-add-config-option-to-disable-automatic-git-co ghstack-source-id: 084ab9c Pull-Request-resolved: #264
ezyang
added a commit
that referenced
this pull request
Apr 20, 2025
codemcp makes does Git commits to keep track of writes and edits it makes to files, as well as to snapshot state of repo before and after it runs commands. Add a configuration option to codemcprc that optionally disables all of this, so that we NEVER issue any git commands automatically. ```git-revs 76f826f (Base revision) eaef646 Add git.enabled to default configuration d42c38c Add git_operations_enabled function to check if Git operations are enabled 3d05ab9 Import git_operations_enabled from config 4211fdc Add check for disabled Git operations in create_commit_reference 274fe31 Update commit_changes docstring to mention git operations disabled case d0ad8d4 Add check for disabled Git operations in commit_changes ed91c17 Import git_operations_enabled from config 55c638f Update check_git_tracking_for_existing_file to handle disabled Git operations fac57d5 Add missing logging import e9f9ee1 Fix duplicate logging import ad2a7d6 Add git.enabled config option to README f093df5 Auto-commit format changes HEAD Add end-to-end tests for Git operations disabled functionality ``` codemcp-id: 274-feat-add-config-option-to-disable-automatic-git-co ghstack-source-id: 084ab9c Pull-Request-resolved: #264
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stack from ghstack (oldest at bottom):
codemcp makes does Git commits to keep track of writes and edits it makes to files, as well as to snapshot state of repo before and after it runs commands. Add a configuration option to codemcprc that optionally disables all of this, so that we NEVER issue any git commands automatically.
codemcp-id: 274-feat-add-config-option-to-disable-automatic-git-co