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: Bind commit messages to files. #2

Open
tofagerl opened this issue Jan 21, 2016 · 2 comments
Open

Feature request: Bind commit messages to files. #2

tofagerl opened this issue Jan 21, 2016 · 2 comments
Labels

Comments

@tofagerl
Copy link

Eg, if I just changed something in file1.md, I could use kommit -f file1.md -m 'Did something smart', and if I don't necessarily decide to commit that change right away, it would wait untill I git added file1.md.

This would also help with branches, though full branch support would be a little different.

Also, shouldn't just the command kommit infer -m ?

@vigo
Copy link
Owner

vigo commented Jan 22, 2016

Hmmm... well, we would like to keep kommit as simple as it can. It is like a notebook, keep the thoughts somewhere, use it when its time to do commit. If I understand correctly, we need to keep track of files if f provided. Also need to create another hook for analyzing file changes to pickup related kommit message. If user makes git add . need to iterate over files and check if any related message available for final commit message?

@tofagerl
Copy link
Author

Something like a hook to git add, yes. It's just an idea, I'll still use it either way.

Edit: This little bash script is actually contributing to my code clarity more than you would think... The key is remembering to use it, though...

@vigo vigo added the question label Mar 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants