Re: Hide decorations in git log
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 26, 2017, 08:48 UTC
- Message-ID
- <CACBZZX6Y6OTd5Dh8d1gKuMQBStgbbEW+kstK6kUFGfAzqWyoTQ@mail.gmail.com>
- In-Reply-To
- <CAHd499B+cyN=3XDqr7KgHSpyHLwi6bS=P_4beoS5fSkFhapAtw@mail.gmail.com>
On Wed, May 24, 2017 at 4:22 PM, Robert Dailey <rcdailey.lists@gmail.com> wrote:
Show 16 quoted lines
> 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? > > For example, if I do `git log --graph --decorate --oneline --branches > 'feature/*'`, I'd like to *only* see refnames that match the glob > pattern. However, you'll see tags and other branches that do not match > the glob if they are reachable from the result set. > > This is purely a visual thing, and shouldn't impact the search results > I'd think. > > This is especially useful in cases where I do --simplify-by-decoration > to get a better understanding of the topology of just a couple of > select branches. Without some sort of "decoration exclusion", I am > getting ton of results including tags, etc which obfuscates the > information I'm really interested in.
I don't think there's a way to do this, but it could be added. The glob just matches the refs now, the decoration happens as an unrelated step which doesn't care about the glob.