5 ms·
What I want is filenames in the git log, just a list of which files were touched in each commit. My messages aren't distinct enough without them.
by lmm 13y ago
What I want is filenames in the git log, just a list of which files were touched in each commit. My messages aren't distinct enough without them.
- chalst 13y agoYes, or at least the basename of the file that changed most. I think you can't include filenames using --pretty though, you'd have to write a new script.
- rquirk 13y ago`git whatchanged` is what you want, it shows the files changed and the commit message.
- deleted 13y ago[deleted]
- h2s 13y agogit log --stat
- glenjamin 13y agotry one of the following: git log --stat git log --numstat git log --name-only These flags can be passed to most git commands which show revisions, including diff and show.
- chalst 13y agoSure, but they can't be integrated into a line-per-commit log without fiddly scripting.
- taeric 13y agoWhat is wrong with git whatchanged? Will use your pretty format for the message, but then show the files. Right?
- chalst 13y agoIs it possible to get one line per commit from this? I can only get one line per file. By one line per commit, I mean something along the lines of: 56c6861 - add reflist (4 months ago: joe) Joe/Manu.bbl Joe/Manu.bib Joe/Manu.bst ... 5ed70cc - (origin/master) add tests; change .gitignore (5 months ago: cas) ./.gitignore test/integ.lua test/refs ... d3c5de1 - replace Manifest; add converter (5 months ago: cas) ./Manifest maked/tex2html.lua maked/tex2html.cfg
- taeric 13y agoApologies for not responding on this. I am not aware of anything that does this right off... Would probably be pretty easy to script. If you are still interested, I could probably get the basics of this rolling.
- chalst 13y agoThanks. I can script this as well - there's nothing fundamentally tricky here, but generating nice output is usually fiddly.