add the hash for current Git head to the 'ver' shell command
Hi Wenting,
I think it would be helpful to include the current Git hash in the information printed by 'ver'. This is achieved by adding the following, to STM32CubeIDE's Project / C/C++ Build / Settings / Pre-build steps:
git log -n 1 --format="// Auto generated when compiling%n#define GIT_HASH "%H"" \> ../User/git_hash.h
Edited by Vassil Panayotov