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

Re: Re* [PATCH] Add `[decorate]' configuration section.

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Feb 20, 2010, 17:17 UTC
Message-ID
<20100220171732.GA15561@book.hvoigt.net>
In-Reply-To
<7vd403vhrn.fsf@alter.siamese.dyndns.org>
On Wed, Feb 17, 2010 at 10:28:28AM -0800, Junio C Hamano wrote:
> Junio C Hamano <gitster@pobox.com> writes:
I have just seen this in Junios tree:
commit 8a3d203bd02bec48a02557961899d81da172fa23 writes:
Show 21 quoted lines
> Author: Junio C Hamano <gitster@pobox.com>
> Date:   Wed Feb 17 10:20:49 2010 -0800
> 
>     log.decorate: usability fixes
>     
>     The configuration is meant to suppliment --decorate command line option
>     that can be used as a boolean to turn the feature on, so it is natural
>     to expect
>     
>         [log]
>                 decorate
>                 decorate = yes
>     
>     to work.  The original commit would segfault with the first one, and
>     would not understand the second one.
>     
>     Once a user has this configuration in ~/.gitconfig, there needs to be a
>     way to override it from the command line.  Add --no-decorate option to
>     log family and also allow --decorate=no to mean the same thing.  Since
>     we allow setting log.decorate to 'true', the command line also should
>     accept --decorate=yes and behave accordingly.

How about calling that option --plain, --porcelain or similar and have it disable all configs which change the current output? Because if we can go this way I would actually like to add more useful configurations. For example I always find me typing:

git log --decorate --abbrev-commit -p
which in most situations just gives you a nicer overview.
cheers Heiko
Previous: Junio C HamanoNext: Thomas Rast
Message 4 of 10 in “Add `[decorate]' configuration section.”
  1. Add `[decorate]' configuration section.Steven Drake, Feb 17, 2010
  2. Junio C HamanoFeb 17, 2010
  3. Re* [PATCH] Add `[decorate]' configuration section.Junio C Hamano, Feb 17, 2010
  4. Heiko VoigtFeb 20, 2010
  5. Thomas RastFeb 20, 2010
  6. Junio C HamanoFeb 22, 2010
  7. Steven DrakeFeb 25, 2010
  8. Junio C HamanoFeb 25, 2010
  9. Steven DrakeFeb 26, 2010
  10. Steven DrakeFeb 26, 2010

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.