Thank you for filling out a Git bug report! Please answer the following questions to help us understand your issue. What did you do before the bug happened? (Steps to reproduce your issue) Navigated to a non-default branch of the repo. I wanted a list of tagged commits for a specific tag pattern relating to a package in my repo. Ran the command: `git log origin/master --no-walk --grep='my-package' --tags='*my-package*' --decorate-refs='*my-package*' --format='format:%ct %H %D'` The output was as expected with the tags not relating to my-package being filtered out from the output by the decorate-refs option. I then, wanted to pipe this output to a separate program. What did you expect to happen? (Expected behavior) I expected that the piped output would be the same as the output in my terminal. What happened instead? (Actual behavior) The filtering I got from the decorate-refs flag was no longer being applied. Thus giving me a bunch of tags I did not want What's different between what you expected and what actually happened? Whether the decorate-refs option worked as expected. Anything else you want to add: Please review the rest of the bug report below. You can delete any lines you don't wish to share. [System Info] git version: git version 2.31.1 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Darwin 20.6.0 Darwin Kernel Version 20.6.0: Wed Jun 23 00:26:27 PDT 2021; root:xnu-7195.141.2~5/RELEASE_ARM64_T8101 x86_64 compiler info: clang: 12.0.0 (clang-1200.0.32.29) libc info: no libc information available $SHELL (typically, interactive shell): /bin/zsh [Enabled Hooks]