I want to add the git commit id number into a project header file using only MSVS 2015 tools.
At the moment it is implemented with an executable running on pre-build that looks for .git
directory and finds the appropriate file with a commit id number. It works fine but I want to use git worktrees because I have to work with multiple branches the same time and I don't really want to have multiple cloned repositories.
Is there a way to use MSVS 2015 tools to reach this goal?