17 lines
429 B
C
17 lines
429 B
C
|
|
// retoor <retoor@molodetz.nl>
|
||
|
|
|
||
|
|
#ifndef R_DIFF_H
|
||
|
|
#define R_DIFF_H
|
||
|
|
|
||
|
|
/**
|
||
|
|
* Prints a beautiful, colorized diff between two strings to stderr.
|
||
|
|
* Mimics the style of 'git diff'.
|
||
|
|
*
|
||
|
|
* @param path The path of the file being changed (for the header).
|
||
|
|
* @param old_content The original content.
|
||
|
|
* @param new_content The new content.
|
||
|
|
*/
|
||
|
|
void r_diff_print(const char *path, const char *old_content, const char *new_content);
|
||
|
|
|
||
|
|
#endif
|