It would be nice to specify generically any argument in the options for the fetch command. We could imagine a naming convention for the options. ex 'fetch.depth', 'fetch.prune'.
The code could be:
for option, value in self.options.items():
if not option.statswith('fetch'):
continue
arg = '--%s' %option.split('.')[1]
if value:
arg += "=%s"%value
fetch_cmd.extend([arg]])
It would be nice to specify generically any argument in the options for the fetch command. We could imagine a naming convention for the options. ex 'fetch.depth', 'fetch.prune'. items() : statswith( 'fetch' ): split(' .')[1] cmd.extend( [arg]])
The code could be:
for option, value in self.options.
if not option.
continue
arg = '--%s' %option.
if value:
arg += "=%s"%value
fetch_
Just an idea