public inbox for git@vger.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Alejandro Colomar <alx@kernel.org>
Cc: git@vger.kernel.org
Subject: Re: --no-decorate and %d in git-log(1)
Date: Wed, 25 Feb 2026 10:29:12 -0800	[thread overview]
Message-ID: <xmqq4in4brt3.fsf@gitster.g> (raw)
In-Reply-To: <aZ81X6ERyx5fcm6L@devuan> (Alejandro Colomar's message of "Wed, 25 Feb 2026 18:55:26 +0100")

Alejandro Colomar <alx@kernel.org> writes:

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

I would imagine everybody would strongly mind as the scripts they
have already written and have been using for years will be broken by
such a change.  So changing how %d works is a non-starter.

But that does not mean we cannot add a different placeholder that
behaves that way.  I wonder if it is the cleanest to extend the
%(decoreate:<option>,...) notation, perhaps like

    $ git log --format="%(decorate:optional=yes)"

with and without --decorate/--no-decorate may be a way forward?


  reply	other threads:[~2026-02-25 18:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-25 17:55 --no-decorate and %d in git-log(1) Alejandro Colomar
2026-02-25 18:29 ` Junio C Hamano [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqq4in4brt3.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=alx@kernel.org \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox