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 -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.