libdiff: Implement diff coloring.
This patch got accidentally left out when libdiff was imported. The rest of the code (command-line option etc.) was present, just not the part that actually prints ANSI color codes. Sponsored by: Klara, Inc. Reviewed by: kevans Differential Revision: https://reviews.freebsd.org/D46873
This commit is contained in:
@@ -110,3 +110,7 @@ int diff_output_chunk_right_version(struct diff_output_info **output_info,
|
||||
|
||||
const char *diff_output_get_label_left(const struct diff_input_info *info);
|
||||
const char *diff_output_get_label_right(const struct diff_input_info *info);
|
||||
|
||||
void diff_output_set_colors(bool _color,
|
||||
const char *_del_code,
|
||||
const char *_add_code);
|
||||
|
||||
Reference in New Issue
Block a user