Пример #1
0
static VALUE rb_git_commit_message_short_GET(VALUE self)
{
    git_commit *commit;
    Data_Get_Struct(self, git_commit, commit);

    return rb_str_new2(git_commit_message_short(commit));
}
Пример #2
0
static VALUE rb_git_commit_message_short_GET(VALUE self)
{
	git_commit *commit;
	RUGGED_OBJ_UNWRAP(self, git_commit, commit);

	return rugged_str_new2(git_commit_message_short(commit), NULL);
}