Method: Atatus::Util.git_sha
- Defined in:
- lib/atatus/util.rb
.git_sha ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
41 42 43 44 |
# File 'lib/atatus/util.rb', line 41 def self.git_sha sha = `git rev-parse --verify HEAD 2>&1`.chomp $?&.success? ? sha : nil end |