vaab / gitchangelog

Creates a changelog from git log history.
Other
584 stars 139 forks source link

Add date to the commit history #102

Closed zhongjingjogy closed 6 years ago

zhongjingjogy commented 6 years ago

Hi,

I would like to ask a overall basic question: How can I add the date information to the commit items listed by gitchangelog ?

Using the default setting and I got something like this,

And I prefer something like this,

I wonder if there is something to do with the git log, and I really need some clues from your guys to proceed. Any help will be appreciated.

Wish you all the best, and have a nice day.

Jing

zhongjingjogy commented 6 years ago

I finally found that this is an easy one.

git log --format="[%H at %cd %au] %s"

It seems that gitchangelog provide more comprehensive functions. But in my case, git log is just enough.

End

vaab commented 6 years ago

You should have a look to the templating mecanism in gitchangelog. It is quite straightforward to add the date to it and format it to you taste. Of course, if git log is enough for you there are no good reason to use gitchangelog.