I have a mixed C/C++ source code and the version control is done using GIT. We follow the Atlassian work flow i.e create branch from master, work on the feature branch and when this work is deemed clean by the team, merge it to the master branch.
My question is, everytime the software is merged to master, does git provide a way with which it automatically increments the software version. E.g from v1. 0 to 1.1 and so on.
I am aware of commit hashes and git tags, but that's not what I'm looking for. My goal is to output this detail in my software along with the commit that's on master.