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

Include An Option to Auto Commit Messages Using Smart Commit #73

Open
ENTPRESTIGIOUS opened this issue Feb 15, 2022 · 3 comments
Open

Comments

@ENTPRESTIGIOUS
Copy link

I wish there would be an option where the extension would have an option which would automatically create the generated git commit message without staging while using Smart Commit to commit without any staging.

@MichaelCurrin
Copy link
Owner

Hi can you elaborate? Is your aim to commit with blank message and have this extension fill it? Can you talk me what steps you would follow?

This extension does not require you to stage files, except in the case of a move or rename.

@ENTPRESTIGIOUS
Copy link
Author

ENTPRESTIGIOUS commented Feb 15, 2022

Hi can you elaborate? Is your aim to commit with blank message and have this extension fill it? Can you talk me what steps you would follow?

This extension does not require you to stage files, except in the case of a move or rename.

So the annoying problem is whenever I create a new file or something, it tells me to stage the changes. Since I have smart commit enabled, the changes usually don't have to be staged and will commit automatically if i put my own message in there. I would like auto commit message to have an option to do the same by automatically filling in the message box before performing the smart commit.

@MichaelCurrin
Copy link
Owner

If the file is deleted or modified, you don't have to stage it. Auto Commit Message will pick up the change.

if you make a new file, or rename/move, then you have to stage first.

This is because at the lowest level, the git diff-index command can't see new files that are unstaged.

There is an alternative to use git status instead, but that will be a major change to do. But if there are issues like this that make it worthwhile, I can consider making that change.

For now, you have to stage or more files and then run the extension to fill the message and then commit

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