login
Header Space

 
 

Re: [PATCH 11/16] git-fetch: skip empty arguments

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <skimo@...>
Cc: <git@...>
Date: Friday, May 18, 2007 - 6:33 pm

skimo@liacs.nl writes:


For git-fetch it does not matter as I do not think there is any
valid case to pass an empty string as a parameter to it (even
"fetch from our own repository" requires a single dot).  But
from discipline point of view, I am not happy about this.

If you are talking about shell scripts, the standard way to do
that is to say ${1+"$1"}.

-
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:
Re: [PATCH 11/16] git-fetch: skip empty arguments, Junio C Hamano, (Fri May 18, 6:33 pm)
speck-geostationary