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

Re: [PATCH v2] refs: make rev-parse --quiet actually quiet

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 19, 2014, 17:52 UTC
Message-ID
<xmqqwq8zmr9p.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1411098337-35406-1-git-send-email-davvid@gmail.com>
David Aguilar <davvid@gmail.com> writes:
Show 18 quoted lines
> When a reflog is deleted, e.g. when "git stash" clears its stashes,
> "git rev-parse --verify --quiet" dies:
>
> 	fatal: Log for refs/stash is empty.
>
> The reason is that the get_sha1() code path does not allow us
> to suppress this message.
>
> Pass the flags bitfield through get_sha1_with_context() so that
> read_ref_at() can suppress the message.
>
> Use get_sha1_with_context1() instead of get_sha1() in rev-parse
> so that the --quiet flag is honored.
>
> Signed-off-by: David Aguilar <davvid@gmail.com>
> ---
> This is a replacement patch for "refs: make rev-parse --quiet actually quiet"
> from da/rev-parse-verify-quiet in pu.
Looks good; thanks.
Previous: David Aguilar
Message 2 of 2 in “refs: make rev-parse --quiet actually quiet”
  1. refs: make rev-parse --quiet actually quietDavid Aguilar, Sep 19, 2014
  2. Junio C HamanoSep 19, 2014

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.