Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add GitInfo #2291
This commit adds a
It then also sets
The Git integrations should be fairly performant, but it adds "some time" to the build, somewhat depending on the Git history size.
If you want, you can run without during development and turn it on when deploying to the live server:
I have updated the PR. There are still some small holes, but it is complete enough to know that it is doable.
So if other could chime in with their opinions about:
My understanding was that it's configurable (via the core.abbrev setting). Defaults to 7. If you change the setting in your repo, you could update your template to match.
I just thought we could save memory allocs, but it's not that much of a win to drop it. You win. :)