X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=combine-diff.c;h=9f80a1c5e3a461afd11966625589684d61187911;hb=d14e7407b34b8c11b407358b9677c283c381a71c;hp=588c58bc55dfe78998d40a4dcce2a7b6ea6f7f5a;hpb=e13067a7499f3cbf543d4a30865c70613f055b4b;p=git.git diff --git a/combine-diff.c b/combine-diff.c index 588c58bc5..9f80a1c5e 100644 --- a/combine-diff.c +++ b/combine-diff.c @@ -84,6 +84,7 @@ struct sline { /* bit 0 up to (N-1) are on if the parent has this line (i.e. * we did not change it). * bit N is used for "interesting" lines, including context. + * bit (N+1) is used for "do not show deletion before this". */ unsigned long flag; unsigned long *p_lno; @@ -308,6 +309,7 @@ static int give_context(struct sline *sline, unsigned long cnt, int num_parent) { unsigned long all_mask = (1UL<lost_head; + ll = (sl->flag & no_pre_delete) ? NULL : sl->lost_head; while (ll) { fputs(c_old, stdout); for (j = 0; j < num_parent; j++) {