Re: Hide decorations in git log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx/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



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]