Thread (33 messages) 33 messages, 5 authors, 2016-06-15

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

flat view

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:43:11

skimo@liacs.nl writes:
From: Sven Verdoolaege <redacted>

This makes it easier for scripts to call git-fetch with options
that may or may not be set.
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"}.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help