Skip to content

Commit f11e1a4

Browse files
committed
push declaration up
1 parent c1c28a5 commit f11e1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/rugged/rugged_index.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,6 +699,7 @@ static VALUE rb_git_diff_tree_to_index(VALUE self, VALUE rb_other, VALUE rb_opti
699699
git_diff *diff = NULL;
700700
VALUE owner;
701701
int error;
702+
git_tree *other_tree;
702703

703704
rugged_parse_diff_options(&opts, rb_options);
704705

@@ -710,7 +711,6 @@ static VALUE rb_git_diff_tree_to_index(VALUE self, VALUE rb_other, VALUE rb_opti
710711
// the "old file" side of the diff.
711712
opts.flags ^= GIT_DIFF_REVERSE;
712713

713-
git_tree *other_tree;
714714
Data_Get_Struct(rb_other, git_tree, other_tree);
715715
error = git_diff_tree_to_index(&diff, repo, other_tree, index, &opts);
716716

0 commit comments

Comments
 (0)