method

rev_parse

v2_4_6 - Show latest stable - Class: Gem::Source::Git
rev_parse()
public

Converts the git reference for the repository into a commit hash.