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

Simplify-by-decoration with decorate-refs-exclude

From
ÉSÉtienne SERVAIS <etienne.servais@voucoux.fr>
Date
Aug 2, 2019, 08:47 UTC
Message-ID
<D941A96E-E5A8-4C86-A200-0BECA30216D1@voucoux.fr>
Hi there,

I've asked this question yesterday on stackoverflow: https://stackoverflow.com/q/57305719/2622010 And have been confirmed it does look like a bug. Unfortunately I'm unable to update to latest git revision but a search through the release notes didn't show anything related to this problem.

I'm working in a git (v2.19.1) repo with lots of tags and branches. To get a glance of the git tree, I'd like to use the `--simplify-by-decoration` option while excluding some of the tags with `--decorate-refs-exclude=<pattern>` of `git log`, but, as per [the documentation](https://git-scm.com/docs/git-log/2.22.0#Documentation/git-log.txt---simplify-by-decoration):
> --simplify-by-decoration
> 
>     Commits that are referred by some branch or tag are selected.
Thus every tags are selected even those that are excluded from the decoration by the pattern.
Thus, when I enter

``` git log --oneline --graph --decorate=full --decorate-refs-exclude='refs/tags/<pattern>' ``` The selected tags are properly excluded but once I add the `simplify-by-decoration` option

``` git log --oneline --graph --decorate=full --decorate-refs-exclude='refs/tags/<pattern>' --simplify-by-decoration ``` The excluded tags pop back again.

Is there a workaround?

Étienne -- +33 6 45 98 22 65 Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. -- +33 6 45 98 22 65 Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.

Next: René Scharfe
Message 1 of 11 in “Simplify-by-decoration with decorate-refs-exclude”
  1. Étienne SERVAISAug 2, 2019
  2. René ScharfeAug 2, 2019
  3. Junio C HamanoAug 2, 2019
  4. René ScharfeAug 2, 2019
  5. Junio C HamanoAug 2, 2019
  6. Jeff KingAug 2, 2019
  7. René ScharfeAug 3, 2019
  8. Junio C HamanoAug 3, 2019
  9. 1/2 log: test --decorate-refs-exclude with --simplify-by-decorationRené Scharfe, Sep 8, 2019
  10. Junio C HamanoSep 9, 2019
  11. 2/2 log-tree: call load_ref_decorations() in get_name_decoration()René Scharfe, Sep 8, 2019

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.