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

Re: Hide decorations in git log

From
Jeff King <peff@peff.net>
Date
May 24, 2017, 14:39 UTC
Message-ID
<20170524143948.orx2i26fobm7sd6n@sigill.intra.peff.net>
In-Reply-To
<CAHd499B+cyN=3XDqr7KgHSpyHLwi6bS=P_4beoS5fSkFhapAtw@mail.gmail.com>
On Wed, May 24, 2017 at 09:22:32AM -0500, Robert Dailey wrote:
> Is it possible to hide decorated refs in `git log` even if they are
> reachable from the refs I'm actually interested in seeing the logs of?
Sadly, no, there's no way to do this right now.
There was some discussion in this thread:
  http://public-inbox.org/git/20170119122630.27645-1-pclouds@gmail.com/T/#u
but no patches that do what you want.

Using the existing ref-selectors as discussed in that thread, it would probably look something like:

  git log --oneline \
	--branches 'feature/*' --decorate-refs \
	--branches 'feature/*'

It sucks that you'd have to specify your refs twice (once to mark them for decoration and once to use them as tips). But the flexibility would let you do things like:

  git log --oneline \
	--branches 'feature/*' --decorate-refs \
	--tags --decorate-refs \
	HEAD

which decorates feature branches and tags, but only traverses from HEAD (just as an example).

Anyway, none of that exists yet, so patches welcome.
-Peff
Previous: Robert DaileyNext: Ævar Arnfjörð Bjarmason
Message 3 of 4 in “Hide decorations in git log”
  1. Robert DaileyMay 24, 2017
  2. Robert DaileyMay 24, 2017
  3. Jeff KingMay 24, 2017
  4. Ævar Arnfjörð BjarmasonMay 26, 2017

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.