Subject: Re: kh/name-rev-custom-format

From: Junio C Hamano <[email-masked]>
Date: Thu, 26 Mar 2026 12:44:33 -0700

"Kristoffer Haugsbakk" <[email-masked]> writes:

> 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.

>
>     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.