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

Feature request: Option to Include files changed, not just diff, in the prompt #11

Open
tsoernes opened this issue Nov 5, 2024 · 4 comments

Comments

@tsoernes
Copy link

tsoernes commented Nov 5, 2024

No description provided.

@avishefi
Copy link
Collaborator

avishefi commented Nov 22, 2024

You can change the prompt by customizing magit-gptcommit-prompt and instruct it to do so.

@avishefi
Copy link
Collaborator

avishefi commented Nov 22, 2024

I see that the prompt contains the file names since the staged section shows the files changed, for example:

modified <file-name>
@@ -1,5 +1,5 @@
-
+dd

@tsoernes
Copy link
Author

How to I customize the prompt to include the files?

I see that "%s" in original prompt is replaced with the diffs.

@avishefi
Copy link
Collaborator

The diff format contains the modified file names as mentioned in #11 (comment) .

You can view the prompt being sent to the llm by setting llm-log to t for llm.

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

No branches or pull requests

2 participants