@@ -110,6 +110,7 @@ static char *opt_ipv4;
110
110
static char * opt_ipv6 ;
111
111
static int opt_show_forced_updates = -1 ;
112
112
static char * set_upstream ;
113
+ static struct argv_array opt_fetch = ARGV_ARRAY_INIT ;
113
114
114
115
static struct option pull_options [] = {
115
116
/* Shared options */
@@ -207,6 +208,15 @@ static struct option pull_options[] = {
207
208
OPT_PASSTHRU (0 , "depth" , & opt_depth , N_ ("depth" ),
208
209
N_ ("deepen history of shallow clone" ),
209
210
0 ),
211
+ OPT_PASSTHRU_ARGV (0 , "shallow-since" , & opt_fetch , N_ ("time" ),
212
+ N_ ("deepen history of shallow repository based on time" ),
213
+ 0 ),
214
+ OPT_PASSTHRU_ARGV (0 , "shallow-exclude" , & opt_fetch , N_ ("revision" ),
215
+ N_ ("deepen history of shallow clone, excluding rev" ),
216
+ 0 ),
217
+ OPT_PASSTHRU_ARGV (0 , "deepen" , & opt_fetch , N_ ("n" ),
218
+ N_ ("deepen history of shallow clone" ),
219
+ 0 ),
210
220
OPT_PASSTHRU (0 , "unshallow" , & opt_unshallow , NULL ,
211
221
N_ ("convert to a complete repository" ),
212
222
PARSE_OPT_NONEG | PARSE_OPT_NOARG ),
@@ -216,12 +226,19 @@ static struct option pull_options[] = {
216
226
OPT_PASSTHRU (0 , "refmap" , & opt_refmap , N_ ("refmap" ),
217
227
N_ ("specify fetch refmap" ),
218
228
PARSE_OPT_NONEG ),
229
+ OPT_PASSTHRU_ARGV ('o' , "server-option" , & opt_fetch ,
230
+ N_ ("server-specific" ),
231
+ N_ ("option to transmit" ),
232
+ 0 ),
219
233
OPT_PASSTHRU ('4' , "ipv4" , & opt_ipv4 , NULL ,
220
234
N_ ("use IPv4 addresses only" ),
221
235
PARSE_OPT_NOARG ),
222
236
OPT_PASSTHRU ('6' , "ipv6" , & opt_ipv6 , NULL ,
223
237
N_ ("use IPv6 addresses only" ),
224
238
PARSE_OPT_NOARG ),
239
+ OPT_PASSTHRU_ARGV (0 , "negotiation-tip" , & opt_fetch , N_ ("revision" ),
240
+ N_ ("report that we have only objects reachable from this object" ),
241
+ 0 ),
225
242
OPT_BOOL (0 , "show-forced-updates" , & opt_show_forced_updates ,
226
243
N_ ("check for forced-updates on all updated branches" )),
227
244
OPT_PASSTHRU (0 , "set-upstream" , & set_upstream , NULL ,
@@ -567,6 +584,7 @@ static int run_fetch(const char *repo, const char **refspecs)
567
584
argv_array_push (& args , "--no-show-forced-updates" );
568
585
if (set_upstream )
569
586
argv_array_push (& args , set_upstream );
587
+ argv_array_pushv (& args , opt_fetch .argv );
570
588
571
589
if (repo ) {
572
590
argv_array_push (& args , repo );
0 commit comments