@@ -248,29 +248,33 @@ void test_rebase_sign__create_propagates_error(void)
248248 git_rebase_free (rebase );
249249}
250250
251- static const char * expected_commit_content = "tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
252- parent f87d14a4a236582a0278a916340a793714256864\n\
253- author Edward Thomson <ethomson@edwardthomson.com> 1405625055 -0400\n\
254- committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n\
255- \n\
256- Modification 3 to gravy\n" ;
257-
251+ #ifndef GIT_DEPRECATE_HARD
258252int signing_cb_passthrough (
259253 git_buf * signature ,
260254 git_buf * signature_field ,
261255 const char * commit_content ,
262256 void * payload )
263257{
258+ static const char * expected_commit_content = "\
259+ tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
260+ parent f87d14a4a236582a0278a916340a793714256864\n\
261+ author Edward Thomson <ethomson@edwardthomson.com> 1405625055 -0400\n\
262+ committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n\
263+ \n\
264+ Modification 3 to gravy\n" ;
265+
264266 cl_assert_equal_b (false, git_buf_is_allocated (signature ));
265267 cl_assert_equal_b (false, git_buf_is_allocated (signature_field ));
266268 cl_assert_equal_s (expected_commit_content , commit_content );
267269 cl_assert_equal_p (NULL , payload );
268270 return GIT_PASSTHROUGH ;
269271}
272+ #endif /* !GIT_DEPRECATE_HARD */
270273
271274/* git checkout gravy ; git rebase --merge veal */
272275void test_rebase_sign__passthrough_signing_cb (void )
273276{
277+ #ifndef GIT_DEPRECATE_HARD
274278 git_rebase * rebase ;
275279 git_reference * branch_ref , * upstream_ref ;
276280 git_annotated_commit * branch_head , * upstream_head ;
@@ -310,15 +314,18 @@ committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n";
310314 git_annotated_commit_free (upstream_head );
311315 git_commit_free (commit );
312316 git_rebase_free (rebase );
317+ #endif /* !GIT_DEPRECATE_HARD */
313318}
314319
320+ #ifndef GIT_DEPRECATE_HARD
315321int signing_cb_gpg (
316322 git_buf * signature ,
317323 git_buf * signature_field ,
318324 const char * commit_content ,
319325 void * payload )
320326{
321- const char * gpg_signature = "-----BEGIN PGP SIGNATURE-----\n\
327+ const char * gpg_signature = "\
328+ -----BEGIN PGP SIGNATURE-----\n\
322329\n\
323330iQIzBAEBCgAdFiEEgVlDEfSlmKn0fvGgK++h5T2/ctIFAlwZcrAACgkQK++h5T2/\n\
324331ctIPVhAA42RyZhMdKl5Bm0KtQco2scsukIg2y7tjSwhti91zDu3HQgpusjjo0fQx\n\
@@ -343,18 +350,21 @@ cttVRsdOoego+fiy08eFE+aJIeYiINRGhqOBTsuqG4jIdpdKxPE=\n\
343350 cl_git_pass (git_buf_set (signature , gpg_signature , strlen (gpg_signature ) + 1 ));
344351 return GIT_OK ;
345352}
353+ #endif /* !GIT_DEPRECATE_HARD */
346354
347355/* git checkout gravy ; git rebase --merge veal */
348356void test_rebase_sign__gpg_with_no_field (void )
349357{
358+ #ifndef GIT_DEPRECATE_HARD
350359 git_rebase * rebase ;
351360 git_reference * branch_ref , * upstream_ref ;
352361 git_annotated_commit * branch_head , * upstream_head ;
353362 git_rebase_operation * rebase_operation ;
354363 git_oid commit_id , expected_id ;
355364 git_rebase_options rebase_opts = GIT_REBASE_OPTIONS_INIT ;
356365 git_commit * commit ;
357- const char * expected_commit_raw_header = "tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
366+ const char * expected_commit_raw_header = "\
367+ tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
358368parent f87d14a4a236582a0278a916340a793714256864\n\
359369author Edward Thomson <ethomson@edwardthomson.com> 1405625055 -0400\n\
360370committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n\
@@ -402,9 +412,11 @@ gpgsig -----BEGIN PGP SIGNATURE-----\n\
402412 git_annotated_commit_free (upstream_head );
403413 git_commit_free (commit );
404414 git_rebase_free (rebase );
415+ #endif /* !GIT_DEPRECATE_HARD */
405416}
406417
407418
419+ #ifndef GIT_DEPRECATE_HARD
408420int signing_cb_magic_field (
409421 git_buf * signature ,
410422 git_buf * signature_field ,
@@ -426,18 +438,21 @@ int signing_cb_magic_field(
426438
427439 return GIT_OK ;
428440}
441+ #endif /* !GIT_DEPRECATE_HARD */
429442
430443/* git checkout gravy ; git rebase --merge veal */
431444void test_rebase_sign__custom_signature_field (void )
432445{
446+ #ifndef GIT_DEPRECATE_HARD
433447 git_rebase * rebase ;
434448 git_reference * branch_ref , * upstream_ref ;
435449 git_annotated_commit * branch_head , * upstream_head ;
436450 git_rebase_operation * rebase_operation ;
437451 git_oid commit_id , expected_id ;
438452 git_rebase_options rebase_opts = GIT_REBASE_OPTIONS_INIT ;
439453 git_commit * commit ;
440- const char * expected_commit_raw_header = "tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
454+ const char * expected_commit_raw_header = "\
455+ tree cd99b26250099fc38d30bfaed7797a7275ed3366\n\
441456parent f87d14a4a236582a0278a916340a793714256864\n\
442457author Edward Thomson <ethomson@edwardthomson.com> 1405625055 -0400\n\
443458committer Rebaser <rebaser@rebaser.rb> 1405694510 +0000\n\
@@ -470,5 +485,5 @@ magicsig magic word: pretty please\n";
470485 git_annotated_commit_free (upstream_head );
471486 git_commit_free (commit );
472487 git_rebase_free (rebase );
488+ #endif /* !GIT_DEPRECATE_HARD */
473489}
474-
0 commit comments