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, 19:44 UTC
Message-ID
<xmqqecl6pe8u.fsf@gitster.g>
In-Reply-To
<8c9dd9f9-4d41-4901-b1fb-080e4e73b40a@app.fastmail.com>
"Kristoffer Haugsbakk" <kristofferhaugsbakk@fastmail.com> writes:
Show 9 quoted lines
> With git-name-rev(1) it looked like formatting options could crowd up
> the place.
>
>> Wouldn't this be done as a new option to "git log", for example?
>
> Okay with me.
>
> git-log(1) blocks until I have closed stdin and effectively dedups
> the output.

Ah, I forgot about the "--stdin" mode. That makes it a non-starter X-<. Sorry about the noise.

Show 13 quoted lines
>
>     git log --oneline  --stdin --no-walk
>     HEAD
>     HEAD
>     HEAD
>     ^D
>     <HEAD is listed one time>
>
> So if an option could tweak it to instead (1) give one output per line
> (like git-name-rev(1)) and (2) not deduplicate (well, follows from (1))
> then the problem seems solved.
>
> Thinking out loud here.
Previous: Kristoffer Haugsbakk
Message 8 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.