Example #1
0
static VALUE rb_git_commit_message_SET(VALUE self, VALUE val)
{
    git_commit *commit;
    Data_Get_Struct(self, git_commit, commit);

    Check_Type(val, T_STRING);
    git_commit_set_message(commit, RSTRING_PTR(val));
    return Qnil;
}
Example #2
0
static VALUE rb_git_commit_message_SET(VALUE self, VALUE val)
{
	git_commit *commit;
	RUGGED_OBJ_UNWRAP(self, git_commit, commit);

	Check_Type(val, T_STRING);
	git_commit_set_message(commit, RSTRING_PTR(val));
	return Qnil;
}