summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 182a8da)
raw | patch | inline | side by side (parent: 182a8da)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 14 Aug 2006 02:19:34 +0000 (19:19 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 14 Aug 2006 02:19:34 +0000 (19:19 -0700) |
The other function, show_raw_diff() is void and no callers use
return value from neither.
Signed-off-by: Junio C Hamano <junkio@cox.net>
return value from neither.
Signed-off-by: Junio C Hamano <junkio@cox.net>
combine-diff.c | patch | blob | history |
diff --git a/combine-diff.c b/combine-diff.c
index ba8baca0ab9f2c3c48b4678108d4a62c1f9f8fd9..f2f38064773876123b5883d4a3d974d38d57d381 100644 (file)
--- a/combine-diff.c
+++ b/combine-diff.c
printf("%s\n", c_reset);
}
-static int show_patch_diff(struct combine_diff_path *elem, int num_parent,
- int dense, struct rev_info *rev)
+static void show_patch_diff(struct combine_diff_path *elem, int num_parent,
+ int dense, struct rev_info *rev)
{
struct diff_options *opt = &rev->diffopt;
unsigned long result_size, cnt, lno;
char *result, *cp;
struct sline *sline; /* survived lines */
int mode_differs = 0;
- int i, show_hunks, shown_header = 0;
+ int i, show_hunks;
int working_tree_file = !memcmp(elem->sha1, null_sha1, 20);
int abbrev = opt->full_index ? 40 : DEFAULT_ABBREV;
mmfile_t result_file;
}
free(sline[0].p_lno);
free(sline);
- return shown_header;
}
#define COLONS "::::::::::::::::::::::::::::::::"
return;
if (opt->output_format & (DIFF_FORMAT_RAW |
DIFF_FORMAT_NAME |
- DIFF_FORMAT_NAME_STATUS)) {
+ DIFF_FORMAT_NAME_STATUS))
show_raw_diff(p, num_parent, rev);
- } else if (opt->output_format & DIFF_FORMAT_PATCH) {
+ else if (opt->output_format & DIFF_FORMAT_PATCH)
show_patch_diff(p, num_parent, dense, rev);
- }
}
void diff_tree_combined(const unsigned char *sha1,