@@ -39,6 +39,7 @@ extern VALUE rb_cRuggedTag;
39
39
extern VALUE rb_cRuggedTree ;
40
40
extern VALUE rb_cRuggedReference ;
41
41
extern VALUE rb_cRuggedBackend ;
42
+ extern VALUE rb_cRuggedOdb ;
42
43
43
44
extern VALUE rb_cRuggedCredPlaintext ;
44
45
extern VALUE rb_cRuggedCredSshKey ;
@@ -590,6 +591,24 @@ static VALUE rb_git_repo_get_config(VALUE self)
590
591
RB_GIT_REPO_OWNED_GET (rb_cRuggedConfig , config );
591
592
}
592
593
594
+ /*
595
+ * call-seq:
596
+ * repo.odb = odb
597
+ */
598
+ static VALUE rb_git_repo_set_odb (VALUE self , VALUE rb_data )
599
+ {
600
+ RB_GIT_REPO_OWNED_SET (rb_cRuggedOdb , odb );
601
+ }
602
+
603
+ /*
604
+ * call-seq:
605
+ * repo.odb -> odb
606
+ */
607
+ static VALUE rb_git_repo_get_odb (VALUE self )
608
+ {
609
+ RB_GIT_REPO_OWNED_GET (rb_cRuggedOdb , odb );
610
+ }
611
+
593
612
/*
594
613
* call-seq:
595
614
* repo.ident = ident
@@ -2512,6 +2531,8 @@ void Init_rugged_repo(void)
2512
2531
rb_define_method (rb_cRuggedRepo , "index=" , rb_git_repo_set_index , 1 );
2513
2532
rb_define_method (rb_cRuggedRepo , "config" , rb_git_repo_get_config , 0 );
2514
2533
rb_define_method (rb_cRuggedRepo , "config=" , rb_git_repo_set_config , 1 );
2534
+ rb_define_method (rb_cRuggedRepo , "odb" , rb_git_repo_get_odb , 0 );
2535
+ rb_define_method (rb_cRuggedRepo , "odb=" , rb_git_repo_set_odb , 1 );
2515
2536
rb_define_method (rb_cRuggedRepo , "refdb=" , rb_git_repository_set_refdb , 1 );
2516
2537
2517
2538
rb_define_method (rb_cRuggedRepo , "ident" , rb_git_repo_get_ident , 0 );
0 commit comments