opensouls / terminal-copilot

A smart terminal assistant that helps you find the right command.
Apache License 2.0
573 stars 43 forks source link

Add the option to include the git context of the user if available #22

Closed 2mawi2 closed 1 year ago

2mawi2 commented 1 year ago

This pull request adds the ability for terminal-copilot to include Git context in the prompt sent to the OpenAI API. The --git flag can be used to enable the inclusion of Git context in the prompt, which may include the current branch name, repository status, recent commit messages, and file history.

This feature can be useful for users working with Git repositories and may help terminal-copilot generate more accurate and targeted terminal commands.

To use this feature, pass the --git flag when calling terminal-copilot.

Let me know what you think of this.

JoelKronander commented 1 year ago

Great idea! merged!