Method: Rugged::Object.rev_parse_oid

Defined in:
ext/rugged/rugged_object.c

.rev_parse_oid(repo, str) ⇒ Object

Find and return the id of the object inside repo as specified by the git revision string str.

See git-scm.com/docs/git-rev-parse.html#_specifying_revisions or man gitrevisions for information on the accepted syntax.

Raises a Rugged::InvalidError if str does not contain a valid revision string.


339
340
341
342
# File 'ext/rugged/rugged_object.c', line 339

VALUE rb_git_object_rev_parse_oid(VALUE klass, VALUE rb_repo, VALUE rb_spec)
{
	return rugged_object_rev_parse(rb_repo, rb_spec, 0);
}