options = [make_option('-b', '--branch',
help = 'use BRANCH instead of the default one'),
+ make_option('-c', '--count',
+ help = 'print the number of patches in the series',
+ action = 'store_true'),
make_option('-d', '--description',
help = 'show a short description for each patch',
action = 'store_true'),
applied = crt_series.get_applied()
unapplied = crt_series.get_unapplied()
+ if options.count:
+ print len(applied) + len(unapplied)
+ return
+
if options.short:
if len(applied) > 5:
applied = applied[-6:]