[ANN] gitmap: map filenames to last commit-info

66 views
Skip to first unread message

bep

unread,
Jul 22, 2016, 3:49:48 PM7/22/16
to golang-nuts
I wrote this as part of a feature in Hugo, the static site generator, to use the last updated timestamp from the Git repo as the page modification date. But then I thought it might be interesting to others (and myself), so I pulled the code into its own repo.

https://github.com/bep/gitmap

A fairly fast way to create a map from all the filenames to info objects for a given revision of a Git repo.


This library uses os/exec to talk to Git. There are faster ways to do this by using some Go Git-lib or C bindings, but that adds dependencies I really don't want or need.


If some git log kung fu master out there have suggestions for improvements, please open an issue or a PR.


bep


Reply all
Reply to author
Forward
0 new messages