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

Re: [PATCH] Functions for updating refs.

From
Johannes Sixt <j.sixt@eudaptics.com>
Date
Sep 4, 2007, 14:28 UTC
Message-ID
<46DD6B93.10005@eudaptics.com>
In-Reply-To
<Pine.LNX.4.64.0709041444070.28586@racer.site>
Johannes Schindelin schrieb:
Show 6 quoted lines
> On Tue, 4 Sep 2007, Carlos Rica wrote:
>> +int update_ref_or_die(const char *action, const char *refname,
>> +				const unsigned char *sha1,
>> +				const unsigned char *oldval, int flags)
> 
> Should this not be "void"?  And should it not use update_ref_or_error()?

It should not use *_error() directly because then it would print two error messages in a row.

-- Hannes
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 10 in “Functions for updating refs.”
  1. Functions for updating refs.Carlos Rica, Sep 4, 2007
  2. Johannes SchindelinSep 4, 2007
  3. Johannes SixtSep 4, 2007
  4. Johannes SchindelinSep 4, 2007
  5. Johannes SixtSep 4, 2007
  6. Karl HasselströmSep 4, 2007
  7. Johannes SchindelinSep 4, 2007
  8. Junio C HamanoSep 4, 2007
  9. Carlos RicaSep 4, 2007
  10. Junio C HamanoSep 5, 2007

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.