@@ -791,16 +791,15 @@ static VALUE rb_git_index_readtree(VALUE self, VALUE rb_tree)
791
791
* marked with a single entry in the diff. If this flag is set to true,
792
792
* all files under ignored directories will be included in the diff, too.
793
793
*/
794
- static VALUE rb_git_index_diff (int argc , VALUE * argv , VALUE self )
794
+ static VALUE rb_git_index_diff (VALUE self , VALUE rb_other , VALUE rb_options )
795
795
{
796
796
git_index * index ;
797
797
git_diff_options opts = GIT_DIFF_OPTIONS_INIT ;
798
798
git_repository * repo ;
799
799
git_diff * diff = NULL ;
800
- VALUE owner , rb_other , rb_options ;
800
+ VALUE owner ;
801
801
int error ;
802
802
803
- rb_scan_args (argc , argv , "01:" , & rb_other , & rb_options );
804
803
rugged_parse_diff_options (& opts , rb_options );
805
804
806
805
Data_Get_Struct (self , git_index , index );
@@ -1224,7 +1223,7 @@ void Init_rugged_index(void)
1224
1223
rb_define_method (rb_cRuggedIndex , "get" , rb_git_index_get , -1 );
1225
1224
rb_define_method (rb_cRuggedIndex , "[]" , rb_git_index_get , -1 );
1226
1225
rb_define_method (rb_cRuggedIndex , "each" , rb_git_index_each , 0 );
1227
- rb_define_method (rb_cRuggedIndex , "diff " , rb_git_index_diff , -1 );
1226
+ rb_define_private_method (rb_cRuggedIndex , "_diff " , rb_git_index_diff , 2 );
1228
1227
1229
1228
rb_define_method (rb_cRuggedIndex , "conflicts?" , rb_git_index_conflicts_p , 0 );
1230
1229
rb_define_method (rb_cRuggedIndex , "conflicts" , rb_git_index_conflicts , 0 );
0 commit comments