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

Re: kh/name-rev-custom-format

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 26, 2026, 18:48 UTC
Message-ID
<xmqqtsu2pgu9.fsf@gitster.g>
In-Reply-To
<e33142cb-1ec3-468f-8080-ba3bad79ae25@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 13 quoted lines
> On Wed, Mar 25, 2026, at 05:20, Junio C Hamano wrote:
>> * kh/name-rev-custom-format (2026-03-20) 2 commits
>>  - name-rev: learn --format=<pretty>
>>  - name-rev: wrap both blocks in braces
>>
>>  "git name-rev" learned to use custom format instead of the object
>>  name in an extended SHA-1 expression form.
>>
>>  Comments?
>>  source: <V2_CV_name-rev_--format.51b@msgid.xyz>
>
> I’m working on rewriting the functionality in the form of a new builtin
> git-format-rev(1) that lives in `builtin/name-rev.c`.

By the way, why do we want yet another builtin in the first place? Wouldn't this be done as a new option to "git log", for example?

Previous: Kristoffer HaugsbakkNext: Kristoffer Haugsbakk
Message 6 of 8 in “What's cooking in git.git (Mar 2026, #10)”
  1. Junio C HamanoMar 25, 2026
  2. Jeff KingMar 25, 2026
  3. Shreyansh PaliwalMar 25, 2026
  4. Junio C HamanoMar 25, 2026
  5. kh/name-rev-custom-formatKristoffer Haugsbakk, Mar 26, 2026
  6. Junio C HamanoMar 26, 2026
  7. Kristoffer HaugsbakkMar 26, 2026
  8. Junio C HamanoMar 26, 2026

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.