summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bfa8fcc)
raw | patch | inline | side by side (parent: bfa8fcc)
author | Jeff King <peff@peff.net> | |
Thu, 17 Jan 2008 15:03:06 +0000 (10:03 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 18 Jan 2008 09:29:38 +0000 (01:29 -0800) |
These were mistakenly being colored in "meta" color.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff.c | patch | blob | history |
index 9ee0c41ba9014c15884348b58fdd73a418929d95..5b8afdcb05abd4f634b49adb2f521fc75e220647 100644 (file)
--- a/diff.c
+++ b/diff.c
int i;
int color;
struct emit_callback *ecbdata = priv;
- const char *set = diff_get_color(ecbdata->color_diff, DIFF_METAINFO);
+ const char *meta = diff_get_color(ecbdata->color_diff, DIFF_METAINFO);
+ const char *plain = diff_get_color(ecbdata->color_diff, DIFF_PLAIN);
const char *reset = diff_get_color(ecbdata->color_diff, DIFF_RESET);
*(ecbdata->found_changesp) = 1;
name_b_tab = strchr(ecbdata->label_path[1], ' ') ? "\t" : "";
printf("%s--- %s%s%s\n",
- set, ecbdata->label_path[0], reset, name_a_tab);
+ meta, ecbdata->label_path[0], reset, name_a_tab);
printf("%s+++ %s%s%s\n",
- set, ecbdata->label_path[1], reset, name_b_tab);
+ meta, ecbdata->label_path[1], reset, name_b_tab);
ecbdata->label_path[0] = ecbdata->label_path[1] = NULL;
}
}
if (len < ecbdata->nparents) {
- set = reset;
emit_line(reset, reset, line, len);
return;
}
diff_words_show(ecbdata->diff_words);
line++;
len--;
- emit_line(set, reset, line, len);
+ emit_line(plain, reset, line, len);
return;
}
for (i = 0; i < ecbdata->nparents && len; i++) {