Method: Asgit.current_commit

Defined in:
lib/asgit.rb

.current_commitString

Get current git commit based on exec directory

Returns:

  • (String)

    the current commit level



23
24
25
# File 'lib/asgit.rb', line 23

def current_commit
  Shell.run( "git rev-parse HEAD" ).stdout.strip
end