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

Re: Add Commit Summary in blame?

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 6, 2024, 00:19 UTC
Message-ID
<xmqqzfu7s5qg.fsf@gitster.g>
In-Reply-To
<CAO0eup=KqHe68OkHqYWtDgsTx0cAwg5Y5HSqK4s_BNbZhr8hVw@mail.gmail.com>
Aleks Todorov <aleks.todorov.1337@gmail.com> writes:
Show 5 quoted lines
> Would people be interested in seeing a patch that adds an option to
> see the commit message summary line in the git blame output? I imagine
> I'm not the first person to come up with this, is there a reason why
> it wasn't already implemented? The porcelain already has it, so the
> change is trivial.

I personally do not. The blame output on the left-hand-side is already wide enough to be even annoying.

A patch that might interest me personally would be one that takes the --format option (copy from the log family plus add some that are only useful in "git blame", like "line number") to allow customizing the left-hand-side of the output, and allows us to reimplement ugly hacks^W^W ad-hoc options (like -l, -t, --date, -f, -n, -s, -e) in terms of that. With such a feature, of course your "commit summary" will come almost for free in the form of --format=%s I would think.

A change that adds even more ad-hoc options is probably not welcome, I would have to say.

Previous: Aleks TodorovNext: Aleks Todorov
Message 2 of 4 in “Add Commit Summary in blame?”
  1. Aleks TodorovApr 5, 2024
  2. Junio C HamanoApr 6, 2024
  3. Aleks TodorovFeb 16, 2025
  4. Junio C HamanoFeb 18, 2025

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.