@@ -609,15 +609,15 @@ static void dump_quoted_path(const char *prefix, const char *path,
609
609
printf ("%s\n" , c_reset );
610
610
}
611
611
612
- static int show_patch_diff (struct combine_diff_path * elem , int num_parent ,
613
- int dense , struct rev_info * rev )
612
+ static void show_patch_diff (struct combine_diff_path * elem , int num_parent ,
613
+ int dense , struct rev_info * rev )
614
614
{
615
615
struct diff_options * opt = & rev -> diffopt ;
616
616
unsigned long result_size , cnt , lno ;
617
617
char * result , * cp ;
618
618
struct sline * sline ; /* survived lines */
619
619
int mode_differs = 0 ;
620
- int i , show_hunks , shown_header = 0 ;
620
+ int i , show_hunks ;
621
621
int working_tree_file = !memcmp (elem -> sha1 , null_sha1 , 20 );
622
622
int abbrev = opt -> full_index ? 40 : DEFAULT_ABBREV ;
623
623
mmfile_t result_file ;
@@ -769,7 +769,6 @@ static int show_patch_diff(struct combine_diff_path *elem, int num_parent,
769
769
}
770
770
free (sline [0 ].p_lno );
771
771
free (sline );
772
- return shown_header ;
773
772
}
774
773
775
774
#define COLONS "::::::::::::::::::::::::::::::::"
@@ -837,11 +836,10 @@ void show_combined_diff(struct combine_diff_path *p,
837
836
return ;
838
837
if (opt -> output_format & (DIFF_FORMAT_RAW |
839
838
DIFF_FORMAT_NAME |
840
- DIFF_FORMAT_NAME_STATUS )) {
839
+ DIFF_FORMAT_NAME_STATUS ))
841
840
show_raw_diff (p , num_parent , rev );
842
- } else if (opt -> output_format & DIFF_FORMAT_PATCH ) {
841
+ else if (opt -> output_format & DIFF_FORMAT_PATCH )
843
842
show_patch_diff (p , num_parent , dense , rev );
844
- }
845
843
}
846
844
847
845
void diff_tree_combined (const unsigned char * sha1 ,
0 commit comments