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

Re: [PATCH] rev-parse --symbolic-full-name: don't print '^' if SHA1 is not a ref

From
Junio C Hamano <gitster@pobox.com>
Date
May 24, 2008, 00:02 UTC
Message-ID
<7v3ao8r2mf.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<4836D0F1.4090007@viscovery.net>
Johannes Sixt <j.sixt@viscovery.net> writes:
Show 9 quoted lines
> From: Johannes Sixt <johannes.sixt@telecom.at>
>
> The intention of --symbolic-full-name is to not print anything if a
> revision is not an exact ref. But this command:
>
>     $ git-rev-parse --symbolic-full-name --not master~1
>
> still emitted a sole '^' to stdout (provided that there's no other ref at
> master~1).
Well spotted.  Thanks.
Previous: Johannes Sixt
Message 2 of 2 in “rev-parse --symbolic-full-name: don't print '^' if SHA1 is not a ref”
  1. rev-parse --symbolic-full-name: don't print '^' if SHA1 is not a refJohannes Sixt, May 23, 2008
  2. Junio C HamanoMay 24, 2008

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.