File: get-git-id.sh

package info (click to toggle)
cadical 2.1.3-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,216 kB
  • sloc: cpp: 36,901; ansic: 4,521; sh: 1,770; makefile: 91
file content (3 lines) | stat: -rwxr-xr-x 124 bytes parent folder | download | duplicates (3)
1
2
3
#!/bin/sh
# print current SHA1 git id which uniquely identifies the source code
git show 2>/dev/null |awk '{print $2;exit}'