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

RE: "git log" does not display refs info when executed via C# Process class on Windows

From
CSCliff Schomburg <clisc@microsoft.com>
Date
Aug 9, 2019, 22:16 UTC
Message-ID
<BN8PR21MB11560DB6FA18D85672CFE8FEB7D60@BN8PR21MB1156.namprd21.prod.outlook.com>
In-Reply-To
<xmqqblwyc8l8.fsf@gitster-ct.c.googlers.com>
Thanks, I will try that as well.  Strange it works on command line but not STDOUT though.
-----Original Message-----
From: Junio C Hamano <gitster@pobox.com> 
Sent: Friday, August 9, 2019 5:50 PM
To: Cliff Schomburg <clisc@microsoft.com>
Cc: SZEDER Gábor <szeder.dev@gmail.com>; git@vger.kernel.org
Subject: Re: "git log" does not display refs info when executed via C# Process class on Windows
Cliff Schomburg <clisc@microsoft.com> writes:
Show 12 quoted lines
> Strangely, when I run this command:
>
> Git log origin/master --pretty=oneline --decorate -1
>
> I get the format I want from STDOUT.  However, when I try to filter it to show only the tag refs:
>
> Git log origin/master --pretty=oneline --decorate 
> --decorate-refs=^tag* -1
>
> No refs are returned to standard output again.  Only on the command line.
>
> Does --decorate-refs not return to STDOUT?
If you are asking for tags, which does not begin with a caret "^", perhaps drop "^" from the pattern?
The pattern is supposed to be wildmatch pattern, so it is already left anchored, e.g. --decorate-refs=ag* won't find any tag.
Previous: Junio C Hamano
Message 6 of 6 in “"git log" does not display refs info when executed via C# Process class on Windows”
  1. Cliff SchomburgAug 9, 2019
  2. SZEDER GáborAug 9, 2019
  3. Cliff SchomburgAug 9, 2019
  4. Cliff SchomburgAug 9, 2019
  5. Junio C HamanoAug 9, 2019
  6. Cliff SchomburgAug 9, 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.