login
Header Space

 
 

Re: [PATCH 1/2] Introduce remove_dir_recursively()

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Johannes Schindelin <Johannes.Schindelin@...>
Cc: <gitster@...>, Daniel Barkalow <barkalow@...>, <git@...>
Date: Friday, September 28, 2007 - 5:05 am

Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:


Is it only me who finds the first if () condition way too
convoluted and needs to read three times to convince oneself
that it is doing a sane thing?

Please, especially...

 * For $DEITY's sake, memcpy() returns pointer to dst which you
   know is not NULL. so !memcpy() is always false here, which
   might be _convenient_ for you and the compiler but not for
   a human reader of the code who needs to blink twice wondering
   if you meant !memcmp().

 * Same for (path[] = '\0'), wondering if it is misspelled
   (path[] == '\0').




-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/2] rsync support, Johannes Schindelin, (Fri Sep 28, 1:06 am)
[PATCH 2/2] fetch/push: readd rsync support, Johannes Schindelin, (Fri Sep 28, 11:29 am)
Re: [PATCH 2/2] fetch/push: readd rsync support, Johannes Schindelin, (Fri Sep 28, 11:30 am)
[PATCH v2 1/2] Introduce remove_dir_recursively(), Johannes Schindelin, (Fri Sep 28, 11:28 am)
[PATCH v2 0/2] rsync support, was Re: [PATCH 0/2] rsync supp..., Johannes Schindelin, (Fri Sep 28, 11:28 am)
[PATCH 2/2] fetch/push: readd rsync support, Johannes Schindelin, (Fri Sep 28, 1:07 am)
Re: [PATCH 2/2] fetch/push: readd rsync support, Junio C Hamano, (Fri Sep 28, 5:30 am)
Re: [PATCH 2/2] fetch/push: readd rsync support, Johannes Schindelin, (Fri Sep 28, 8:53 am)
Re: [PATCH 2/2] fetch/push: readd rsync support, Shawn O. Pearce, (Fri Sep 28, 1:20 am)
Re: [PATCH 2/2] fetch/push: readd rsync support, Johannes Schindelin, (Fri Sep 28, 8:22 am)
[PATCH 1/2] Introduce remove_dir_recursively(), Johannes Schindelin, (Fri Sep 28, 1:06 am)
Re: [PATCH 1/2] Introduce remove_dir_recursively(), Junio C Hamano, (Fri Sep 28, 5:05 am)
Re: [PATCH 1/2] Introduce remove_dir_recursively(), Johannes Schindelin, (Fri Sep 28, 8:35 am)
Re: [PATCH 1/2] Introduce remove_dir_recursively(), David Kastrup, (Fri Sep 28, 6:14 pm)
speck-geostationary