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

Re: [PATCH] Functions for updating refs.

From
Karl Hasselström <kha@treskal.com>
Date
Sep 4, 2007, 15:29 UTC
Message-ID
<20070904152901.GA31299@diana.vm.bytemark.co.uk>
In-Reply-To
<46DD7506.3090503@eudaptics.com>
On 2007-09-04 17:08:54 +0200, Johannes Sixt wrote:
Show 5 quoted lines
> Johannes Schindelin schrieb:
>
> > Well, my idea was to let _error() print the message, and just die().
>
> How do you avoid that die() prints an error, too?

Make a generic function that takes a function pointer argument, then call it with die or error as appropriate.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Previous: Johannes SixtNext: Johannes Schindelin
Message 6 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.