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

Re: [Crash] git-push $remote $non_ref:$anything

From
Jeff King <peff@peff.net>
Date
Jun 16, 2008, 16:17 UTC
Message-ID
<20080616161754.GB7219@sigill.intra.peff.net>
In-Reply-To
<20080616161502.GA7219@sigill.intra.peff.net>
On Mon, Jun 16, 2008 at 12:15:02PM -0400, Jeff King wrote:
>  	if (!matched_src)
> -		errs = 1;
> +		return -1;

This could maybe be cleaned up even more by just returning -1 at each point where matched_src becomes NULL (in the switch statement above).

-Peff
Previous: Jeff King
Message 5 of 5 in “[Crash] git-push $remote $non_ref:$anything”
  1. Mike HommeyJun 15, 2008
  2. Jeff KingJun 15, 2008
  3. Daniel BarkalowJun 15, 2008
  4. Jeff KingJun 16, 2008
  5. Jeff KingJun 16, 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.