qmk_firmware
qmk_firmware copied to clipboard
Add commit info to `version.h`
Description
Small changes to the CLI to add the current commit's hash into version.h
aswell as a marker(*
) to know if the repository contained any un-commited changes when firmware was compiled.
This way we can print
stuff like: firmware built with commit: e725d6b199*
.
I made this to show the hash on a corner of my Quantum Painter screen(s) but thought it could be useful to other people thus sharing it.
Types of Changes
- [ ] Core
- [ ] Bugfix
- [X] New feature
- [ ] Enhancement/optimization
- [ ] Keyboard (addition or update)
- [ ] Keymap/layout/userspace (addition or update)
- [ ] Documentation
Issues Fixed or Closed by This PR
Checklist
- [X] My code follows the code style of this project: C, Python
- [X] I have read the PR Checklist document and have made the appropriate changes.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [X] I have read the CONTRIBUTING document.
- [ ] I have added tests to cover my changes.
- [X] I have tested the changes and verified that they work and don't break anything (as well as I can manage).