3 ms·
> I wish there was some kind of auto generated commit message. Things like: > "Added function xyz()" or "Adjusted constant FOO to 27" or "Made lots of changes
by samb1729 6y ago
> I wish there was some kind of auto generated commit message. Things like:
> "Added function xyz()" or "Adjusted constant FOO to 27" or "Made lots of changes in file a.c,, b.c and c.c".
I would argue that these are not good commit messages as they do not add information not already provided by the diff itself. Commit messages should communicate the intended effect of a change that has been made, rather than being a lossy compression of a sequence of keystrokes.
- londons_explore 6y agoIn which case I want a lossy summary of the diff... And it would be great if a tool could generate those for me...
- BatmanAoD 6y agoTry `git log -p <path(s)>`, which will show the sequence of diffs for only the specified set of files.