Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Output the graph columns at the end of the commit message
author
Bo Yang
<struggleyb.nku@gmail.com>
Wed, 26 May 2010 07:08:03 +0000
(15:08 +0800)
committer
Junio C Hamano
<gitster@pobox.com>
Tue, 1 Jun 2010 01:00:21 +0000
(18:00 -0700)
There is an empty line between the commit message and the diff
output. Add the graph columns as prefix of this line.
Signed-off-by: Bo Yang <struggleyb.nku@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
log-tree.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
a3c158d
)
diff --git
a/log-tree.c
b/log-tree.c
index d3ae969f608b50a469aa60b2e925558a6bb437e5..2e2be7c40f996949a69f597168b620976cf55b2f 100644
(file)
--- a/
log-tree.c
+++ b/
log-tree.c
@@
-469,6
+469,12
@@
int log_tree_diff_flush(struct rev_info *opt)
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
if ((pch & opt->diffopt.output_format) == pch)
printf("---");
int pch = DIFF_FORMAT_DIFFSTAT | DIFF_FORMAT_PATCH;
if ((pch & opt->diffopt.output_format) == pch)
printf("---");
+ if (opt->diffopt.output_prefix) {
+ struct strbuf *msg = NULL;
+ msg = opt->diffopt.output_prefix(&opt->diffopt,
+ opt->diffopt.output_prefix_data);
+ fwrite(msg->buf, msg->len, 1, stdout);
+ }
putchar('\n');
}
}
putchar('\n');
}
}