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

Re: [PATCH] log: document the --decorate=auto option

From
Marc Branchaud <marcnarc@xiplink.com>
Date
May 27, 2016, 18:35 UTC
Message-ID
<57489366.507@xiplink.com>
In-Reply-To
<57486E12.7030907@ramsayjones.plus.com>
On 2016-05-27 11:56 AM, Ramsay Jones wrote:
Show 32 quoted lines
>
> Signed-off-by: Ramsay Jones <ramsay@ramsayjones.plus.com>
> ---
>
> Hi Junio,
>
> While reading an email from Linus earlier (RFC: dynamic "auto" date formats),
> I noticed that log.decorate was being set to 'auto'. Since I didn't recall
> that setting (even if it's easy to guess), I went looking for the documentation ...
>
> This should probably be marked RFC, since I haven't checked that the formatting
> is OK (I don't have the documentation toolchain installed these days).
>
> ATB,
> Ramsay Jones
>
>   Documentation/config.txt  | 5 ++++-
>   Documentation/git-log.txt | 8 +++++---
>   2 files changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/Documentation/config.txt b/Documentation/config.txt
> index 53f00db..0707b3b 100644
> --- a/Documentation/config.txt
> +++ b/Documentation/config.txt
> @@ -1956,7 +1956,10 @@ log.decorate::
>   	command. If 'short' is specified, the ref name prefixes 'refs/heads/',
>   	'refs/tags/' and 'refs/remotes/' will not be printed. If 'full' is
>   	specified, the full ref name (including prefix) will be printed.
> -	This is the same as the log commands '--decorate' option.
> +	If 'auto' is specified, then if the output is going to a terminal,
> +	the ref names are shown as if 'short' were given, otherwise no ref
> +	names are shown. This is the same as the log commands '--decorate'
s/commands/command's/
		M.
Previous: Ramsay JonesNext: Junio C Hamano
Message 2 of 3 in “log: document the --decorate=auto option”
  1. log: document the --decorate=auto optionRamsay Jones, May 27, 2016
  2. Marc BranchaudMay 27, 2016
  3. Junio C HamanoMay 27, 2016

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.