git/list[1] front-page[2] threads[3] people[4] search[5] about
 

wishlist bugreport: make limit configurable for do_fmt_merge_msg (merge.log)

From
Yaroslav Halchenko <debian@onerussian.com>
Date
Aug 20, 2010, 02:01 UTC
Message-ID
<20100820020127.GG22469@onerussian.com>
Hi Git Developers,

Shame on me but couldn't figure out if there is any official bug tracker for git -- previously I just complained here, so keeping the tradition:

merge.log (or merge.summary) enables a really nice feature of including a list of commits involved in the merge. Unfortunately it is limited to 20 entries and only includes total number of included commits if that is larger than 20.

Looking at the source code (if I got it right)
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;
.... no line touches limit ....
			shortlog(origins.items[i].string, origins.items[i].util,
					head, &rev, limit, out);

so, limit of 20 is hardcoded and cannot be altered via configuration. I would love to have it configurable, so, if desired, be set to infinity (configuration wide or as a cmd line parameter for a specific merge).

Thanks in advance
-- 
                                  .-.
=------------------------------   /v\  ----------------------------=
Keep in touch                    // \\     (yoh@|www.)onerussian.com
Yaroslav Halchenko              /(   )\               ICQ#: 60653192
                   Linux User    ^^-^^    [175555]
Next: Ramkumar Ramachandra
Message 1 of 7 in “wishlist bugreport: make limit configurable for do_fmt_merge_msg (merge.log)”
  1. Yaroslav HalchenkoAug 20, 2010
  2. Ramkumar RamachandraAug 20, 2010
  3. Jonathan NiederAug 20, 2010
  4. Ramkumar RamachandraAug 20, 2010
  5. Johannes SixtAug 20, 2010
  6. Ramkumar RamachandraAug 20, 2010
  7. Johannes SixtAug 20, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.