Re:A better git log
by lmm on Friday June 07, 2013 @06:17AM
(#5838116)
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.
[ Parent
| on HN ]
try 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.Sure, but they can't be integrated into a line-per-commit log without fiddly scripting.
What is wrong with git whatchanged? Will use your pretty format for the message, but then show the files. Right?
Is 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.cfgApologies 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.
Thanks. I can script this as well - there's nothing fundamentally tricky here, but generating nice output is usually fiddly.
Yes, 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.
`git whatchanged` is what you want, it shows the files changed and the commit message.