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

Re: [PATCH] log: do not print ellipses with --abbrev-commit

From
Jeff King <peff@peff.net>
Date
Feb 13, 2009, 22:24 UTC
Message-ID
<20090213222450.GB7424@coredump.intra.peff.net>
In-Reply-To
<1234563041-25061-1-git-send-email-trast@student.ethz.ch>
On Fri, Feb 13, 2009 at 11:10:41PM +0100, Thomas Rast wrote:
Show 9 quoted lines
> 'git log --abbrev-commit' added an ellipsis to all commit names that
> were abbreviated.  This was particularly annoying if you wanted to
> cut&paste the sha1 from the terminal, since selecting by word would
> pick up '...'  too.
> 
> So use find_unique_abbrev() instead of diff_unique_abbrev() in all
> log-related commit sha1 printing routines, and also change the
> formatting of the 'Merge: parent1 parent2' line output via
> pretty_print_commit().

I like this. I have always hated the dots, and even started typing extra --pretty=tformat lines to get rid of them. I always just assumed we didn't want to change the output, but I think Junio's reasoning that scripts cannot be relying on this is sane.

-Peff
Previous: Thomas RastNext: Jakub Narebski
Message 10 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.