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

Re: [PATCH] mingw_rmdir: do not prompt for retry when non-empty

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 5, 2012, 17:00 UTC
Message-ID
<7v624gl9hl.fsf@alter.siamese.dyndns.org>
In-Reply-To
<CABPQNSbsp_V7o8jQrwjSE_x3z3cAf7T3evK+Xq9kVZF0HrGwpg@mail.gmail.com>
Erik Faye-Lund <kusmabite@gmail.com> writes:
Show 20 quoted lines
> On Wed, Dec 5, 2012 at 5:02 PM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> ...
> Since we're justifying the approaches, I'd like to explain why I
> preferred the return approach: it performs less tests. While this
> might sound like premature optimizations, performance is not why I
> think it's a good idea. It makes the fix easier to verify; you don't
> need to validate that the conditions of the second loop won't happen,
> because the code exits quickly.
>
> If we added something that required cleanup, we could change the
> return to a goto with a cleanup-label, and it would still be
> relatively easy to see what's going on.
>
>> However, I have no strong opinion on this, so please apply the version you
>> like better.
>
> Since the issue is present in mainline Git as well, I'd prefer if
> Junio merged whatever he prefers. I can produce a proper patch out of
> your suggesting, if needed.

Thanks; what you and Dscho agreed in this discussion sounds good to me, too.

-- 
*** Please reply-to-all at all times ***
*** (do not pretend to know who is subscribed and who is not) ***
*** Please avoid top-posting. ***
The msysGit Wiki is here: https://github.com/msysgit/msysgit/wiki - Github accounts are free.

You received this message because you are subscribed to the Google
Groups "msysGit" group.
To post to this group, send email to msysgit@googlegroups.com
To unsubscribe from this group, send email to
msysgit+unsubscribe@googlegroups.com
For more options, and view previous threads, visit this group at
http://groups.google.com/group/msysgit?hl=en_US?hl=en
Previous: Erik Faye-Lund
Message 6 of 6 in “mingw_rmdir: do not prompt for retry when non-empty”
  1. mingw_rmdir: do not prompt for retry when non-emptyErik Faye-Lund, Dec 4, 2012
  2. Johannes SchindelinDec 4, 2012
  3. Erik Faye-LundDec 5, 2012
  4. Johannes SchindelinDec 5, 2012
  5. Erik Faye-LundDec 5, 2012
  6. Junio C HamanoDec 5, 2012

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.