|
@@ -17,6 +17,8 @@ def __main__():
|
|
|
help='find developers in charge of these files')
|
|
|
parser.add_argument('-c', dest='check', action='store_const',
|
|
|
const=True, help='list files not handled by any developer')
|
|
|
+ parser.add_argument('--cc', action="store_true",
|
|
|
+ help='list affected developers as CC: lines ready to be pasted in a commit log')
|
|
|
parser.add_argument('-e', dest='email', action='store_const',
|
|
|
const=True, help='only list affected developer email addresses')
|
|
|
parser.add_argument('-v', dest='validate', action='store_const',
|
|
@@ -99,9 +101,9 @@ def __main__():
|
|
|
matching_devs.add(dev.name)
|
|
|
|
|
|
matching_devs = sorted(matching_devs)
|
|
|
- if args.email:
|
|
|
+ if args.email or args.cc:
|
|
|
for dev in matching_devs:
|
|
|
- print(dev)
|
|
|
+ print(f"{'Cc: ' if args.cc else ''}{dev}")
|
|
|
else:
|
|
|
result = "--to buildroot@buildroot.org"
|
|
|
for dev in matching_devs:
|