aboutsummaryrefslogtreecommitdiff
path: root/diff.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-05-24 12:19:47 -0700
committerJunio C Hamano <junkio@cox.net>2006-05-24 12:19:47 -0700
commit73f0a1577b92f9ce932b34a6b8657dcb377dc311 (patch)
treea131f036395394ff2b32c855f510080c818c33e6 /diff.c
parentf2054be4c4816d8c363dc867f462bc0af9031c02 (diff)
parentefbff23609654ac0542d3421d19eea8dbc1f80cd (diff)
downloadgit-73f0a1577b92f9ce932b34a6b8657dcb377dc311.tar.gz
git-73f0a1577b92f9ce932b34a6b8657dcb377dc311.tar.xz
Merge branch 'js/fmt-patch'
This makes "git format-patch" a built-in. * js/fmt-patch: git-rebase: use canonical A..B syntax to format-patch git-format-patch: now built-in. fmt-patch: Support --attach fmt-patch: understand old <his> notation Teach fmt-patch about --keep-subject Teach fmt-patch about --numbered fmt-patch: implement -o <dir> fmt-patch: output file names to stdout Teach fmt-patch to write individual files. Use RFC2822 dates from "git fmt-patch". git-fmt-patch: thinkofix to show [PATCH] properly. rename internal format-patch wip Minor tweak on subject line in --pretty=email Tentative built-in format-patch.
Diffstat (limited to 'diff.c')
-rw-r--r--diff.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/diff.c b/diff.c
index 77c09a87b..9e9cfc8b7 100644
--- a/diff.c
+++ b/diff.c
@@ -299,6 +299,7 @@ static void diffstat_consume(void *priv, char *line, unsigned long len)
static const char pluses[] = "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++";
static const char minuses[]= "----------------------------------------------------------------------";
+const char mime_boundary_leader[] = "------------";
static void show_stats(struct diffstat_t* data)
{
@@ -1991,7 +1992,10 @@ void diff_flush(struct diff_options *options)
if (options->summary)
for (i = 0; i < q->nr; i++)
diff_summary(q->queue[i]);
- putchar(options->line_termination);
+ if (options->stat_sep)
+ fputs(options->stat_sep, stdout);
+ else
+ putchar(options->line_termination);
}
for (i = 0; i < q->nr; i++) {
struct diff_filepair *p = q->queue[i];