From: "René Scharfe" <l.s.r@web.de>
To: Junio C Hamano <gitster@pobox.com>
Cc: "Étienne SERVAIS" <etienne.servais@voucoux.fr>,
git@vger.kernel.org, "Rafael Ascensão" <rafa.almas@gmail.com>
Subject: [PATCH 1/2] log: test --decorate-refs-exclude with --simplify-by-decoration
Date: Sun, 8 Sep 2019 19:58:41 +0200 [thread overview]
Message-ID: <ea3fed37-a465-6a26-1035-6885015261b7@web.de> (raw)
In-Reply-To: <xmqqwofuia0x.fsf@gitster-ct.c.googlers.com>
Demonstrate that a decoration filter given with --decorate-refs-exclude
is inadvertently overruled by --simplify-by-decoration.
Reported-by: Étienne SERVAIS <etienne.servais@voucoux.fr>
Signed-off-by: René Scharfe <l.s.r@web.de>
---
t/t4202-log.sh | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/t/t4202-log.sh b/t/t4202-log.sh
index c20209324c..01c95d1375 100755
--- a/t/t4202-log.sh
+++ b/t/t4202-log.sh
@@ -837,6 +837,21 @@ test_expect_success 'decorate-refs and decorate-refs-exclude' '
test_cmp expect.decorate actual
'
+test_expect_failure 'decorate-refs-exclude and simplify-by-decoration' '
+ cat >expect.decorate <<-\EOF &&
+ Merge-tag-reach (HEAD -> master)
+ reach (tag: reach, reach)
+ seventh (tag: seventh)
+ Merge-branch-tangle
+ Merge-branch-side-early-part-into-tangle (tangle)
+ tangle-a (tag: tangle-a)
+ EOF
+ git log -n6 --decorate=short --pretty="tformat:%f%d" \
+ --decorate-refs-exclude="*octopus*" \
+ --simplify-by-decoration >actual &&
+ test_cmp expect.decorate actual
+'
+
test_expect_success 'log.decorate config parsing' '
git log --oneline --decorate=full >expect.full &&
git log --oneline --decorate=short >expect.short &&
--
2.23.0
next prev parent reply other threads:[~2019-09-08 17:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` René Scharfe [this message]
2019-09-09 18:17 ` [PATCH 1/2] log: test --decorate-refs-exclude with --simplify-by-decoration Junio C Hamano
2019-09-08 17:58 ` [PATCH 2/2] log-tree: call load_ref_decorations() in get_name_decoration() René Scharfe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea3fed37-a465-6a26-1035-6885015261b7@web.de \
--to=l.s.r@web.de \
--cc=etienne.servais@voucoux.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=rafa.almas@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).