path: root/builtin.h
diff options
authorRamkumar Ramachandra <>2010-09-08 17:59:53 (GMT)
committerJunio C Hamano <>2010-09-09 18:39:20 (GMT)
commit1876166aaab56056083e6a61de4423d130d4dcc6 (patch)
tree36aa247bd4c5ab3009ce3d8ee5837ad36ae34145 /builtin.h
parentfdc4408a8980392f2cc30dc125906a61edf170ec (diff)
fmt_merge_msg: Change fmt_merge_msg API to accept shortlog_len
Give "shortlog_len" parameter to the fmt_merge_msg(), remove its "merge_summary" parameter, and remove fmt_merge_msg_shortlog() function. In the updated API, shortlog_len == 0 means no shortlog is given. The parameter "merge_title" controls if the title of the merge commit is autogenerated (it reads something like "Merge branch ..."), and typically it is set to true when the caller does not give its own message. Signed-off-by: Ramkumar Ramachandra <> Mentored-by: Jonathan Nieder <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'builtin.h')
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin.h b/builtin.h
index ed6ee26..09b94ea 100644
--- a/builtin.h
+++ b/builtin.h
@@ -7,6 +7,8 @@
#include "commit.h"
#include "notes.h"
extern const char git_version_string[];
extern const char git_usage_string[];
extern const char git_more_info_string[];
@@ -14,9 +16,8 @@ extern const char git_more_info_string[];
extern void list_common_cmds_help(void);
extern const char *help_unknown_cmd(const char *cmd);
extern void prune_packed_objects(int);
-extern int fmt_merge_msg(int merge_summary, struct strbuf *in,
- struct strbuf *out);
-extern int fmt_merge_msg_shortlog(struct strbuf *in, struct strbuf *out);
+extern int fmt_merge_msg(struct strbuf *in, struct strbuf *out,
+ int merge_title, int shortlog_len);
extern int commit_notes(struct notes_tree *t, const char *msg);
struct notes_rewrite_cfg {