Get the current SHA of HEAD.
(git: GitClient)
| 84 | |
| 85 | /** Get the current SHA of HEAD. */ |
| 86 | function getCurrentSha(git: GitClient) { |
| 87 | try { |
| 88 | return git.run(['rev-parse', 'HEAD']).stdout.trim(); |
| 89 | } catch { |
| 90 | return ''; |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | /** Get the current abbreviated SHA of HEAD. */ |
| 95 | function getCurrentAbbrevSha(git: GitClient) { |
no test coverage detected