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

Re: [PATCH] Functions for updating refs.

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 4, 2007, 13:45 UTC
Message-ID
<Pine.LNX.4.64.0709041444070.28586@racer.site>
In-Reply-To
<46DD6020.4050401@gmail.com>
Hi,
On Tue, 4 Sep 2007, Carlos Rica wrote:
Show 6 quoted lines
> Signed-off-by: Carlos Rica <jasampler@gmail.com>
> ---
> 
>    They are designed to be reused also from other builtins,
>    like the recently changed builtin-tag.c and the upcoming
>    builtin-reset.c, and perhaps also from builtin-fetch--tool.c.
This should go into the commit message.
> +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()?
Otherwise I like it.

Ciao, Dscho

Previous: Carlos RicaNext: Johannes Sixt
Message 2 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.