Skip to content

Commit

Permalink
combine-diff: minor output changes.
Browse files Browse the repository at this point in the history
Remove extra whitespace between the change indicators and the
body text.  That is more in line with the uncombined unified
diff output (pointed out by Santi Bejar).

When showing --cc, say so instead of saying just --combined.

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Jan 28, 2006
1 parent 5290a0f commit e228340
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions combine-diff.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,6 @@ static void dump_sline(struct sline *sline, int cnt, int num_parent)
else
putchar(' ');
}
putchar(' ');
puts(ll->line);
ll = ll->next;
}
Expand All @@ -396,7 +395,7 @@ static void dump_sline(struct sline *sline, int cnt, int num_parent)
else
putchar('+');
}
printf(" %.*s\n", sl->len, sl->bol);
printf("%.*s\n", sl->len, sl->bol);
}
}
}
Expand Down Expand Up @@ -503,7 +502,7 @@ int diff_tree_combined_merge(const unsigned char *sha1,
for (p = paths; p; p = p->next) {
if (!p->len)
continue;
printf("diff --combined ");
printf("diff --%s ", dense ? "cc" : "combined");
if (quote_c_style(p->path, NULL, NULL, 0))
quote_c_style(p->path, NULL, stdout, 0);
else
Expand Down

0 comments on commit e228340

Please sign in to comment.