ext/rugged/rugged_rebase.c in rugged-0.28.5 vs ext/rugged/rugged_rebase.c in rugged-0.99.0
- old
+ new
@@ -13,10 +13,12 @@
extern VALUE rb_cRuggedCommit;
extern VALUE rb_cRuggedReference;
VALUE rb_cRuggedRebase;
+extern const rb_data_type_t rugged_object_type;
+
static VALUE rebase_operation_type(git_rebase_operation *operation);
static void parse_rebase_options(git_rebase_options *ret, VALUE rb_options)
{
VALUE val;
@@ -68,10 +70,10 @@
if (rb_obj_is_kind_of(rb_value, rb_cRuggedCommit)) {
const git_commit * commit;
const git_oid * oid;
- Data_Get_Struct(rb_value, git_commit, commit);
+ TypedData_Get_Struct(rb_value, git_commit, &rugged_object_type, commit);
oid = git_commit_id(commit);
error = git_annotated_commit_lookup(annotated_commit, repo, oid);
} else if (rb_obj_is_kind_of(rb_value, rb_cRuggedReference)) {
const git_reference * ref;