I am a Git newbee with UNIX SCCS and Microsoft Visual SourceSafe experience.
In SCCS, each file has a version (I%), which is made of Release (%R), Level (L%), Branch (%B), and Sequence (S%). %I is equal to R%.%L.B%.%S, okay? These are referred to as ID Keywords.
The purpose is you insert these ID Keywords in the source code before checking them in, then when you check them out for read-only (not to change), It’ll convert them to their version number. For example:
printf(“Version s\n”, “%I“);
...will become,
printf(“Version %s\n”, “1.4.6.2”);
Which will print,
Version 1.4.6.2
SCCS keeps track of versions on a file-by-file basis and increments them each time they’re checked in.
Is there anything close to that in Git?