@@ -255,8 +255,8 @@ static void do_fmt_merge_msg_title(struct strbuf *out,
255
255
strbuf_addf (out , " into %s\n" , current_branch );
256
256
}
257
257
258
- static int do_fmt_merge_msg (int merge_summary , struct strbuf * in ,
259
- struct strbuf * out ) {
258
+ static int do_fmt_merge_msg (int merge_title , int merge_summary ,
259
+ struct strbuf * in , struct strbuf * out ) {
260
260
int limit = 20 , i = 0 , pos = 0 ;
261
261
unsigned char head_sha1 [20 ];
262
262
const char * current_branch ;
@@ -285,7 +285,8 @@ static int do_fmt_merge_msg(int merge_summary, struct strbuf *in,
285
285
if (!srcs .nr )
286
286
return 0 ;
287
287
288
- do_fmt_merge_msg_title (out , current_branch );
288
+ if (merge_title )
289
+ do_fmt_merge_msg_title (out , current_branch );
289
290
290
291
if (merge_summary ) {
291
292
struct commit * head ;
@@ -305,7 +306,11 @@ static int do_fmt_merge_msg(int merge_summary, struct strbuf *in,
305
306
}
306
307
307
308
int fmt_merge_msg (int merge_summary , struct strbuf * in , struct strbuf * out ) {
308
- return do_fmt_merge_msg (merge_summary , in , out );
309
+ return do_fmt_merge_msg (1 , merge_summary , in , out );
310
+ }
311
+
312
+ int fmt_merge_msg_shortlog (struct strbuf * in , struct strbuf * out ) {
313
+ return do_fmt_merge_msg (0 , 1 , in , out );
309
314
}
310
315
311
316
int cmd_fmt_merge_msg (int argc , const char * * argv , const char * prefix )
0 commit comments