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

Re: [PATCH] diff: --abbrev option

From
Junio C Hamano <junkio@cox.net>
Date
Dec 18, 2005, 02:57 UTC
Message-ID
<7vek4byuwg.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<20051218001756.GS22159@pasky.or.cz>
Petr Baudis <pasky@suse.cz> writes:
>   I was actually thinking to by default trim all the hashes Cogito show
> to 12 or 16 characters. Seven still seems dangerously low to me, though;
> it would be nice if the number of characters to trim would be
> configurable (unless I've missed that).

Well, I did better than you imagined this time, for a change ;-) It trims and adds extra as needed without breaking alignments, so you could get something like this:

>       :100755 100755 0266f46... b0e54ed... M	git-branch.sh
>       :100755 100755 f241d4b9.. 36308d2ab. M	git-checkout.sh

That is, ... is not just distraction but are part of the design. Cut and paste is a byproduct.

Previous: Petr BaudisNext: Petr Baudis
Message 3 of 5 in “diff: --abbrev option”
  1. diff: --abbrev optionJunio C Hamano, Dec 17, 2005
  2. Petr BaudisDec 18, 2005
  3. Junio C HamanoDec 18, 2005
  4. Petr BaudisDec 18, 2005
  5. Junio C HamanoDec 18, 2005

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.