Git Info Variables like Hugo

I’m interested in incorporating git commit information into my site templates like Hugo’s .GitInfo object. I’m more than happy trying to implement this feature myself, but I wanted to see if:

  1. it was a feature that others wanted
  2. there’s a reason it can’t or shouldn’t be done
  3. it’s in the works somewhere already or implemented some other way

Some relevant resources (as a new user, I can only put 2 links in a post so replace the underscores with dots):

  • https://docs_rs/git2/latest/git2/
  • https://github_com/gohugoio/hugo/blob/master/hugolib/gitinfo.go
  • https://github_com/bep/gitmap/blob/master/gitmap.go
1 Like