Ejemplo n.º 1
0
static VALUE rb_git_commit_author_SET(VALUE self, VALUE rb_sig)
{
	git_commit *commit;
	RUGGED_OBJ_UNWRAP(self, git_commit, commit);

	git_commit_set_author(commit, rugged_signature_get(rb_sig));
	return Qnil;
}
Ejemplo n.º 2
0
static VALUE rb_git_commit_author_SET(VALUE self, VALUE rb_person)
{
    const char *name, *email;
    time_t time;
    git_commit *commit;
    Data_Get_Struct(self, git_commit, commit);

    rugged_person_rb2c(rb_person, &name, &email, &time);
    git_commit_set_author(commit, name, email, time);
    return Qnil;
}