Closed tfabris closed 6 years ago
I'm having trouble getting the pre-commit file to output anything at all. None of the sites out there give a good example of how to do this. I'm using GitHub Desktop for Mac and I'm not even sure it's executing the pre-commit file at all, and if it did, what directory it would be acting upon (for example if i do "cat Version.h" in the script is it even in the right directory to see the file, and if not what is its relative path). None of the examples on the web show any of this critical information. When I try doing ECHO statements in the pre-commit script, I don't see them in the log files for GitHub Desktop. When I try to ECHO to a file with a write-to-file operator (>) then no file appears on the hard disk.
I don't know why it's not working and so I'm going to give up on this for now.
Investigate to see if GitHub has a method for automatically increasing the version number of a program with each checkin to the master branch. If so, implement that.
Display the version number in the initial logging text which appears on the serial port.