@@ -33,11 +33,11 @@ void test_diff_blob__initialize(void)
33
33
34
34
/* tests/resources/attr/root_test4.txt */
35
35
cl_git_pass (git_oid_fromstrn (& oid , "a0f7217a" , 8 ));
36
- cl_git_pass (git_blob_lookup_prefix (& d , g_repo , & oid , 4 ));
36
+ cl_git_pass (git_blob_lookup_prefix (& d , g_repo , & oid , 8 ));
37
37
38
38
/* alien.png */
39
39
cl_git_pass (git_oid_fromstrn (& oid , "edf3dcee" , 8 ));
40
- cl_git_pass (git_blob_lookup_prefix (& alien , g_repo , & oid , 4 ));
40
+ cl_git_pass (git_blob_lookup_prefix (& alien , g_repo , & oid , 8 ));
41
41
}
42
42
43
43
void test_diff_blob__cleanup (void )
@@ -80,7 +80,7 @@ void test_diff_blob__can_compare_text_blobs(void)
80
80
81
81
/* tests/resources/attr/root_test3 */
82
82
cl_git_pass (git_oid_fromstrn (& c_oid , "c96bbb2c2557a832" , 16 ));
83
- cl_git_pass (git_blob_lookup_prefix (& c , g_repo , & c_oid , 8 ));
83
+ cl_git_pass (git_blob_lookup_prefix (& c , g_repo , & c_oid , 16 ));
84
84
85
85
/* Doing the equivalent of a `git diff -U1` on these files */
86
86
@@ -163,15 +163,15 @@ void test_diff_blob__can_compare_text_blobs_with_patch(void)
163
163
164
164
/* tests/resources/attr/root_test1 */
165
165
cl_git_pass (git_oid_fromstrn (& a_oid , "45141a79" , 8 ));
166
- cl_git_pass (git_blob_lookup_prefix (& a , g_repo , & a_oid , 4 ));
166
+ cl_git_pass (git_blob_lookup_prefix (& a , g_repo , & a_oid , 8 ));
167
167
168
168
/* tests/resources/attr/root_test2 */
169
169
cl_git_pass (git_oid_fromstrn (& b_oid , "4d713dc4" , 8 ));
170
- cl_git_pass (git_blob_lookup_prefix (& b , g_repo , & b_oid , 4 ));
170
+ cl_git_pass (git_blob_lookup_prefix (& b , g_repo , & b_oid , 8 ));
171
171
172
172
/* tests/resources/attr/root_test3 */
173
173
cl_git_pass (git_oid_fromstrn (& c_oid , "c96bbb2c2557a832" , 16 ));
174
- cl_git_pass (git_blob_lookup_prefix (& c , g_repo , & c_oid , 8 ));
174
+ cl_git_pass (git_blob_lookup_prefix (& c , g_repo , & c_oid , 16 ));
175
175
176
176
/* Doing the equivalent of a `git diff -U1` on these files */
177
177
@@ -437,7 +437,7 @@ void test_diff_blob__can_compare_two_binary_blobs(void)
437
437
438
438
/* heart.png */
439
439
cl_git_pass (git_oid_fromstrn (& h_oid , "de863bff" , 8 ));
440
- cl_git_pass (git_blob_lookup_prefix (& heart , g_repo , & h_oid , 4 ));
440
+ cl_git_pass (git_blob_lookup_prefix (& heart , g_repo , & h_oid , 8 ));
441
441
442
442
cl_git_pass (git_diff_blobs (
443
443
alien , NULL , heart , NULL , & opts ,
@@ -505,7 +505,7 @@ void test_diff_blob__comparing_two_text_blobs_honors_interhunkcontext(void)
505
505
506
506
/* tests/resources/attr/root_test1 from commit f5b0af1 */
507
507
cl_git_pass (git_oid_fromstrn (& old_d_oid , "fe773770" , 8 ));
508
- cl_git_pass (git_blob_lookup_prefix (& old_d , g_repo , & old_d_oid , 4 ));
508
+ cl_git_pass (git_blob_lookup_prefix (& old_d , g_repo , & old_d_oid , 8 ));
509
509
510
510
/* Test with default inter-hunk-context (not set) => default is 0 */
511
511
cl_git_pass (git_diff_blobs (
@@ -598,7 +598,7 @@ void test_diff_blob__can_compare_blob_to_buffer(void)
598
598
599
599
/* tests/resources/attr/root_test1 */
600
600
cl_git_pass (git_oid_fromstrn (& a_oid , "45141a79" , 8 ));
601
- cl_git_pass (git_blob_lookup_prefix (& a , g_repo , & a_oid , 4 ));
601
+ cl_git_pass (git_blob_lookup_prefix (& a , g_repo , & a_oid , 8 ));
602
602
603
603
/* diff from blob a to content of b */
604
604
quick_diff_blob_to_str (a , NULL , b_content , 0 , NULL );
@@ -640,7 +640,7 @@ void test_diff_blob__can_compare_blob_to_buffer_with_patch(void)
640
640
641
641
/* tests/resources/attr/root_test1 */
642
642
cl_git_pass (git_oid_fromstrn (& a_oid , "45141a79" , 8 ));
643
- cl_git_pass (git_blob_lookup_prefix (& a , g_repo , & a_oid , 4 ));
643
+ cl_git_pass (git_blob_lookup_prefix (& a , g_repo , & a_oid , 8 ));
644
644
645
645
/* diff from blob a to content of b */
646
646
cl_git_pass (git_patch_from_blob_and_buffer (
@@ -719,10 +719,10 @@ void test_diff_blob__binary_data_comparisons(void)
719
719
opts .flags |= GIT_DIFF_INCLUDE_UNMODIFIED ;
720
720
721
721
cl_git_pass (git_oid_fromstrn (& oid , "45141a79" , 8 ));
722
- cl_git_pass (git_blob_lookup_prefix (& nonbin , g_repo , & oid , 4 ));
722
+ cl_git_pass (git_blob_lookup_prefix (& nonbin , g_repo , & oid , 8 ));
723
723
724
724
cl_git_pass (git_oid_fromstrn (& oid , "b435cd56" , 8 ));
725
- cl_git_pass (git_blob_lookup_prefix (& bin , g_repo , & oid , 4 ));
725
+ cl_git_pass (git_blob_lookup_prefix (& bin , g_repo , & oid , 8 ));
726
726
727
727
/* non-binary to reference content */
728
728
@@ -825,11 +825,11 @@ void test_diff_blob__using_path_and_attributes(void)
825
825
opts .flags |= GIT_DIFF_INCLUDE_UNMODIFIED ;
826
826
827
827
cl_git_pass (git_oid_fromstrn (& oid , "45141a79" , 8 ));
828
- cl_git_pass (git_blob_lookup_prefix (& nonbin , g_repo , & oid , 4 ));
828
+ cl_git_pass (git_blob_lookup_prefix (& nonbin , g_repo , & oid , 8 ));
829
829
/* 20b: "Hello from the root\n" */
830
830
831
831
cl_git_pass (git_oid_fromstrn (& oid , "b435cd56" , 8 ));
832
- cl_git_pass (git_blob_lookup_prefix (& bin , g_repo , & oid , 4 ));
832
+ cl_git_pass (git_blob_lookup_prefix (& bin , g_repo , & oid , 8 ));
833
833
/* 33b: "0123456789\n\x01\x02\x03\x04\x05\x06\x07\x08\x09\n0123456789\n" */
834
834
835
835
/* non-binary to reference content */
0 commit comments