* rr/fmt-merge-msg:
t6200-fmt-merge-msg: Exercise '--log' to configure shortlog length
t6200-fmt-merge-msg: Exercise 'merge.log' to configure shortlog length
merge: Make 'merge.log' an integer or boolean option
merge: Make '--log' an integer option for number of shortlog entries
fmt_merge_msg: Change fmt_merge_msg API to accept shortlog_len
Conflicts:
builtin/merge.c
@ -16,11 +16,11 @@ inspect and further tweak the merge result before committing.
@@ -16,11 +16,11 @@ inspect and further tweak the merge result before committing.
With --no-ff Generate a merge commit even if the merge
resolved as a fast-forward.
--log::
--log[=<n>]::
--no-log::
In addition to branch names, populate the log message with
one-line descriptions from the actual commits that are being
merged.
one-line descriptions from at most <n> actual commits that are being
merged. See also linkgit:git-fmt-merge-msg[1].
+
With --no-log do not list one-line descriptions from the
static int do_fmt_merge_msg(int merge_title, int merge_summary,
struct strbuf *in, struct strbuf *out) {
int limit = 20, i = 0, pos = 0;
static int do_fmt_merge_msg(int merge_title, struct strbuf *in,
struct strbuf *out, int shortlog_len) {
int i = 0, pos = 0;
unsigned char head_sha1[20];
const char *current_branch;
@ -288,7 +289,7 @@ static int do_fmt_merge_msg(int merge_title, int merge_summary,
@@ -288,7 +289,7 @@ static int do_fmt_merge_msg(int merge_title, int merge_summary,
if (merge_title)
do_fmt_merge_msg_title(out, current_branch);
if (merge_summary) {
if (shortlog_len) {
struct commit *head;
struct rev_info rev;
@ -303,17 +304,14 @@ static int do_fmt_merge_msg(int merge_title, int merge_summary,
@@ -303,17 +304,14 @@ static int do_fmt_merge_msg(int merge_title, int merge_summary,