4 ms·
If you can use the blob Id for the file: - Add this to your .gitattributes file (https://git-scm.com/docs/gitattributes https://git-scm.com/docs/gitattributes)
by eb0la 7y ago
If you can use the blob Id for the file:
- Add this to your .gitattributes file (https://git-scm.com/docs/gitattributes https://git-scm.com/docs/gitattributes):
.c ident
- Add this string to the file:
static const char str[] = "$Id$"
- Commit the change AND check out the file.
- The string will be changed to:
static const char str[] = "$Id: 0400..(40-byte-blob-id-for-this-C-file...213"