I have embedded software with the following version-numbering :
<Product Number>.<Major>.<SVN commit number>
- Product Number is arbitrary set up and corresponds to each soft
- Major is arbitrary set up and it is incremented with major evolution of the soft
- SVN commit number is incremented with each commit
The problem is that we swapped from svn to git and we lost the SVN commit number which is "replaced" by SHA.
Thus, we could replace <SVN commit number> by <git commit SHA>. However, we can't do that because we are constrained to 2 bytes for this last versionning-number, and <git commit SHA> is often compressed to 3 bytes.
Is there another way to have a version-numbering taking into account commits?