diff options
author | Junio C Hamano <junkio@cox.net> | 2006-05-24 12:19:47 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-05-24 12:19:47 -0700 |
commit | 73f0a1577b92f9ce932b34a6b8657dcb377dc311 (patch) | |
tree | a131f036395394ff2b32c855f510080c818c33e6 /diff.c | |
parent | f2054be4c4816d8c363dc867f462bc0af9031c02 (diff) | |
parent | efbff23609654ac0542d3421d19eea8dbc1f80cd (diff) | |
download | git-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.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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]; |