-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add function to get git editor
Add a new function `get_git_editor` in `git_utils.py` to retrieve the configured git editor or use 'vim' as the default. This function checks for the environment variables GIT_EDITOR and EDITOR, setting them accordingly. If not set, it defaults to 'vim' on non-Windows platforms and 'notepad.exe' on Windows platforms. Update `user_interaction.py` to use this new function instead of directly getting the editor from environment variables.
- Loading branch information
Showing
2 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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