pirelenito / git-revision-webpack-plugin

🏗 Webpack plugin that generates VERSION and COMMITHASH files during build
https://www.npmjs.com/package/git-revision-webpack-plugin
MIT License
358 stars 48 forks source link

Get date of last commit #26

Closed lvl99 closed 6 years ago

lvl99 commented 6 years ago

Is it possible to get the date of the last commit?

pirelenito commented 6 years ago

What do you mean?

The plugin currently outputs just the VERSION and COMMITHASH information, do you want an extra DATE or something?

Cheers!

pirelenito commented 6 years ago

I'm closing the issue due to inactivity, but feel free to repoen again.

Cheers!

tartinesKiller commented 6 years ago

If anyone is still interested in last commit date time, I've forked and implemented it, a pull request is actually awaiting. Link to the repo: https://github.com/tartinesKiller/git-revision-webpack-plugin

lvl99 commented 6 years ago

Sorry @pirelenito, must have missed the notifications before.

Thanks @tartinesKiller !

k-funk commented 5 years ago

Would also like to see this feature. A simple git log -1 --format=%cI would be helpful for me. Personally the format doesn't matter for my current usage, but it might to some (see https://git-scm.com/docs/pretty-formats for formatting options).