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

Bug Report

From
JRJosh Rampersad <josh.rampersad@voiceflow.com>
Date
Dec 1, 2021, 22:31 UTC
Message-ID
<C29F5770-5092-40A6-9604-DA5F7166575D@voiceflow.com>

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]
Next: Jeff King
Message 1 of 4 in “Bug Report”
  1. Josh RampersadDec 1, 2021
  2. 0/2 log: handle --decorate-ref without explicit --decorateJeff King, Dec 2, 2021
  3. 1/2 log: handle --decorate-refs with userformat "%d"Jeff King, Dec 2, 2021
  4. 2/2 log: load decorations with --simplify-by-decorationJeff King, Dec 2, 2021

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.