kommit icon indicating copy to clipboard operation
kommit copied to clipboard

Feature request: Bind commit messages to files.

Open tofagerl opened this issue 9 years ago • 2 comments

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 ?

tofagerl avatar Jan 21 '16 10:01 tofagerl

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?

vigo avatar Jan 22 '16 09:01 vigo

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...

tofagerl avatar Jan 22 '16 09:01 tofagerl