From b634cfd86042f303dae68c2805810c7a0f9614c5 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Wed, 9 Dec 2015 09:43:20 +0000 Subject: Simplify diff markup Remove for inserted/deleted lines and use the for coloring. --- urmoms.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'urmoms.c') diff --git a/urmoms.c b/urmoms.c index 01aebb1..8167d0f 100644 --- a/urmoms.c +++ b/urmoms.c @@ -333,16 +333,16 @@ printshowfile(struct commitinfo *ci) if (git_patch_get_line_in_hunk(&line, patch, j, k)) break; if (line->old_lineno == -1) - fprintf(fp, "+", + fprintf(fp, "+", j, k, j, k); else if (line->new_lineno == -1) - fprintf(fp, "-", + fprintf(fp, "-", j, k, j, k); else fputc(' ', fp); xmlencode(fp, line->content, line->content_len); if (line->old_lineno == -1 || line->new_lineno == -1) - fputs("", fp); + fputs("", fp); } } git_patch_free(patch); -- cgit v1.2.3