Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change usage for git commit with diff from staged file and usage of shell option #568

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

odrevet
Copy link

@odrevet odrevet commented May 22, 2024

shell gpt can be used to write commit messages as demonstrated in the usage section of README.md
This PR improve this usage by

  • limiting the changes piped to shell gpt on staged files
  • change the prompt to generate a git -m command and limit to 72 characters
  • the --shell flag is also added so the command can be executed

Change usage for git commit with diff from staged file and usage of shell option
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant