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

Re: [PATCH] log: make --abbrev-commit's ellipsis configurable

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 13, 2009, 13:20 UTC
Message-ID
<alpine.DEB.1.00.0902131418230.10279@pacific.mpi-cbg.de>
In-Reply-To
<1234529920-9694-1-git-send-email-trast@student.ethz.ch>
Hi,
On Fri, 13 Feb 2009, Thomas Rast wrote:
Show 20 quoted lines
> 'git log --abbrev-commit' adds an ellipsis to all commit names that
> were abbreviated.  This is annoying if you want to cut&paste the sha1
> from the terminal, since selecting by word will pick up '...' too.
> (And this cannot be fixed by making '.' a non-word character; in other
> instances, such as the '123457..abcdef0' from git-fetch, it's part of
> the expression.)
> 
> So we introduce a new variable format.abbrevEllipsis that defaults to
> true (previous behaviour).  If disabled, the formatting routines for
> log/show/whatchanged do not append an ellipsis.
> 
> Signed-off-by: Thomas Rast <trast@student.ethz.ch>
> ---
>[...]
>
>  Documentation/config.txt |    6 ++++++
>  builtin-log.c            |    4 ++++
>  log-tree.c               |   19 ++++++++++++++-----
>  log-tree.h               |    3 +++
>  pretty.c                 |    6 ++----

I am slightly worried that you overshoot here, as log-tree.c has plumbing users, too, no?

How about making this an option, and passing it in rev_opts instead? This option could then be defaulted to in git-log, when the user said --abbrev-commit.

Ciao, Dscho

Previous: Thomas RastNext: Thomas Rast
Message 2 of 11 in “log: make --abbrev-commit's ellipsis configurable”
  1. log: make --abbrev-commit's ellipsis configurableThomas Rast, Feb 13, 2009
  2. Johannes SchindelinFeb 13, 2009
  3. Thomas RastFeb 13, 2009
  4. Johannes SchindelinFeb 13, 2009
  5. log: make --abbrev-commit's ellipsis configurableThomas Rast, Feb 13, 2009
  6. Johannes SixtFeb 13, 2009
  7. Jeff KingFeb 13, 2009
  8. Junio C HamanoFeb 13, 2009
  9. log: do not print ellipses with --abbrev-commitThomas Rast, Feb 13, 2009
  10. Jeff KingFeb 13, 2009
  11. Jakub NarebskiFeb 13, 2009

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.