Re: [RFC/PATCH 2/4] Teach the --multiple option to 'git fetch'
- From
Jay Soffian <jaysoffian@gmail.com>
- Date
- Nov 9, 2009, 00:59 UTC
- Message-ID
- <76718490911081659u318ea362l29342a9b3d90f03f@mail.gmail.com>
- In-Reply-To
- <4AF6E7DE.1020201@gmail.com>
2009/11/8 Björn Gustavsson <bgustavsson@gmail.com>:
> Add the --multiple option to specify that all arguments are either > groups or remotes. The primary reason for adding this option is > to allow us to re-implement 'git remote update' using fetch.
Can't this be determined automagically by inspecting the arguments? I believe there can be two unambiguous usages:
a) git fetch <repository> <refspec>... b) git fetch <repository>...
If there is more than one argument, either:
a) arguments 2...N must be refpecs (i.e., each must contain a colon) b) arguments 2...N must NOT be refspecs
"The format of a <refspec> parameter is an optional plus +, followed by the source ref <src>, followed by a colon :, followed by the destination ref <dst>."
j.