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

Re: Any objectsions to enhancing git-log to show tags/branch heads?

From
Theodore Tso <tytso@mit.edu>
Date
Apr 17, 2007, 02:21 UTC
Message-ID
<20070417022154.GC30340@thunk.org>
In-Reply-To
<Pine.LNX.4.64.0704161552160.5473@woody.linux-foundation.org>
On Mon, Apr 16, 2007 at 04:00:38PM -0700, Linus Torvalds wrote:
> 	commit 02cfc097c2351a2b6e3a65626ce619f038f73c03 (refs/heads/master)

Nice! And you did it far more efficiently than I probably would have done it if I tried to code it. :-)

The one thing that's a bit unfortunate is that with the commit ID taking up 40 characters, very often there's not enough space on the screen to display all of the tags and references (and with the default less options being hardcoded as "-FRSX", the ones that go beyond the width of the screen get lost.

So I tried to use --abbrev, and it didn't shrink the size of the id, like I thought it would. It didn't object to the option, but apparently it ignored it. Funny, I thought it worked before, but it wasn't before I applied the patch, so it wasn't your patches that were at fault.

It would be nice if the --pretty=format had a way of specifying the decorations, so it would be possible to have a format more like:

Author: Linus Torvalds <torvalds@osdl.org>
Date:   Mon Apr 16 15:49:58 2007 -0700
Head: origin/master
Head: master
Tag: v2.6.20-rc7-ext4-1 (signed)

... but that's something I can work on supplying as a patch, given that you've written the underlying machinery.

					- Ted
Previous: Linus TorvaldsNext: Jakub Narebski
Message 11 of 15 in “Any objectsions to enhancing git-log to show tags/branch heads?”
  1. Theodore Ts'oApr 16, 2007
  2. Junio C HamanoApr 16, 2007
  3. Theodore TsoApr 16, 2007
  4. Peter BaumannApr 16, 2007
  5. J. Bruce FieldsApr 16, 2007
  6. Peter BaumannApr 17, 2007
  7. J. Bruce FieldsApr 17, 2007
  8. Julian PhillipsApr 16, 2007
  9. Peter BaumannApr 17, 2007
  10. Linus TorvaldsApr 16, 2007
  11. Theodore TsoApr 17, 2007
  12. Jakub NarebskiApr 17, 2007
  13. Linus TorvaldsApr 17, 2007
  14. Junio C HamanoApr 23, 2007
  15. Theodore TsoApr 17, 2007

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.