public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
* --no-decorate and %d in git-log(1)
@ 2026-02-25 17:55 Alejandro Colomar
  2026-02-25 18:29 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Alejandro Colomar @ 2026-02-25 17:55 UTC (permalink / raw)
  To: git

[-- Attachment #1: Type: text/plain, Size: 813 bytes --]

Hi!

I use a custom alias that is very similar to
	git log --oneline

The reason is that the command above doesn't show the signatures on
commits, and if I were to show it (--show-signature) that would take too
much space (I really want --oneline).  So I use the following format:
	--format=tformat:'%C(magenta)%G?%C(reset) %C(auto)%h%d%C(reset) %C(auto)%s%C(reset)'

which imitates --oneline, except for the %G? at the beginning of the
format.

A problem with it is that '%d' is unconditional.  I'd like to be able to
use --no-decorate to turn it off.  This would be consistent with %h
being affected by core.abbrev, and %cd and %ad being affected by
log.date.

Would you mind changing %d to be affected by --decorate=?


Have a lovely day!
Alex

-- 
<https://www.alejandro-colomar.es>

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-01  5:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-25 17:55 --no-decorate and %d in git-log(1) Alejandro Colomar
2026-02-25 18:29 ` Junio C Hamano
2026-02-25 18:36   ` Alejandro Colomar
2026-02-25 18:56     ` Junio C Hamano
2026-02-25 19:46     ` Marc Branchaud
2026-02-25 20:08       ` Junio C Hamano
2026-02-25 21:46         ` Marc Branchaud
2026-02-25 21:54           ` Alejandro Colomar
2026-03-01  5:59           ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox