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

Improper commit msg when there are multiple file changes stagged #10

Open
Spartan-71 opened this issue Dec 29, 2024 · 4 comments
Open
Assignees
Labels
bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@Spartan-71
Copy link
Owner

No description provided.

@Spartan-71 Spartan-71 added the bug Something isn't working label Dec 29, 2024
@Spartan-71 Spartan-71 changed the title [BUG] Improper commit msg when there are multiple file changes stagged Improper commit msg when there are multiple file changes stagged Dec 29, 2024
@Spartan-71 Spartan-71 added the good first issue Good for newcomers label Dec 29, 2024
@HackedRico
Copy link

Hello,

Awesome project and a useful tool!! Could I tackle this task? If so, could you give me some more context?

Question: What is AutoCommit using to determine and generate concise Commit Messages? Is AutoCommit analyzing the changes compared to the previous version to determine if they constitute added features, refactored code, or bug fix? I didn’t see this information in the README—apologies if I missed it.

Thanks!

@Spartan-71
Copy link
Owner Author

Sure @HackedRico.

How It Works

It runs the git diff --staged command to gather all staged changes and processes them using a local LLM (default: llama3.2:3b provided by Ollama). The model analyzes the changes and generates a concise, context-aware commit message, ensuring privacy and avoiding external API dependencies.

@HackedRico
Copy link

Thanks, I completely missed that section. Could you elaborate more on what "improper messages" are and point me to the direction I should be looking at?

Sidenote: Adding an example output of running act gen to the README.md would be a nice touch.

@Spartan-71
Copy link
Owner Author

Spartan-71 commented Jan 7, 2025

@HackedRico sry I completely missed ur comment.
So whenever there are a lot of changes in multiple files, the act gen command gives me a complete explanation of the changes and suggests improvements.

Especially when a large file is deleted or created it gives a complete description.
Have a look:-
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants