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

Re: What's cooking in git.git (Jul 2016, #03; Fri, 8)

From
Jeff King <peff@peff.net>
Date
Jul 10, 2016, 04:45 UTC
Message-ID
<20160710044529.GA10777@sigill.intra.peff.net>
In-Reply-To
<20160710034736.GA19151@dcvr.yhbt.net>
On Sun, Jul 10, 2016 at 03:47:36AM +0000, Eric Wong wrote:
Show 8 quoted lines
> > There was one minor improvement I suggested[1] (and which you seemed to
> > like), which is to push the errno check into the function. That wasn't
> > expressed in patch form, though, so I've included below a version of
> > your patch with my suggestion squashed in.
> 
> Yes, I'm fine with either, but I'm slightly thrown off by
> a function relying on errno being set by the caller, even if it
> is errno.  So maybe localizing it is better (see below)

Yeah, I had a similar reservation, but didn't want to clutter the interface. However, just passing errno isn't too bad (as you showed below), and is much less magical.

Do you want to squash that and re-send the whole patch to make Junio's life easier?

Show 7 quoted lines
> > Since both conditionals just call "continue", you could actually fold
> > them into a single if() in each caller, but I think it's easier to
> > follow as two separate ones.
> > 
> > You could actually fold the t
> 
> Copy-paste error?
Nope, just typing error while revising. :)
-Peff
Previous: Eric WongNext: Eric Wong
Message 7 of 10 in “What's cooking in git.git (Jul 2016, #03; Fri, 8)”
  1. Junio C HamanoJul 8, 2016
  2. Eric WongJul 9, 2016
  3. Junio C HamanoJul 11, 2016
  4. Eric WongJul 9, 2016
  5. Jeff KingJul 10, 2016
  6. Eric WongJul 10, 2016
  7. Jeff KingJul 10, 2016
  8. 3/2 hoist out handle_nonblock function for xread and xwriteEric Wong, Jul 10, 2016
  9. Johannes SchindelinJul 11, 2016
  10. Junio C HamanoJul 11, 2016

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.