git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / Atom feed
* Simplify-by-decoration with decorate-refs-exclude
@ 2019-08-02  8:47 Étienne SERVAIS
  2019-08-02 16:52 ` René Scharfe
  0 siblings, 1 reply; 11+ messages in thread
From: Étienne SERVAIS @ 2019-08-02  8:47 UTC (permalink / raw)
  To: git

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é.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, back to index

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-02  8:47 Simplify-by-decoration with decorate-refs-exclude Étienne SERVAIS
2019-08-02 16:52 ` René Scharfe
2019-08-02 19:14   ` Junio C Hamano
2019-08-02 20:36     ` René Scharfe
2019-08-02 21:20       ` Junio C Hamano
2019-08-02 23:21         ` Jeff King
2019-08-03  6:51         ` René Scharfe
2019-08-03 14:44           ` Junio C Hamano
2019-09-08 17:58             ` [PATCH 1/2] log: test --decorate-refs-exclude with --simplify-by-decoration René Scharfe
2019-09-09 18:17               ` Junio C Hamano
2019-09-08 17:58             ` [PATCH 2/2] log-tree: call load_ref_decorations() in get_name_decoration() René Scharfe

git@vger.kernel.org list mirror (unofficial, one of many)

Archives are clonable:
	git clone --mirror https://public-inbox.org/git
	git clone --mirror http://ou63pmih66umazou.onion/git
	git clone --mirror http://czquwvybam4bgbro.onion/git
	git clone --mirror http://hjrcffqmbrq6wope.onion/git

Example config snippet for mirrors

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.version-control.git
	nntp://ou63pmih66umazou.onion/inbox.comp.version-control.git
	nntp://czquwvybam4bgbro.onion/inbox.comp.version-control.git
	nntp://hjrcffqmbrq6wope.onion/inbox.comp.version-control.git
	nntp://news.gmane.io/gmane.comp.version-control.git

 note: .onion URLs require Tor: https://www.torproject.org/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git