equal
deleted
inserted
replaced
164 if patchlines: |
164 if patchlines: |
165 patchlines.pop(0) |
165 patchlines.pop(0) |
166 while patchlines and not patchlines[0].strip(): |
166 while patchlines and not patchlines[0].strip(): |
167 patchlines.pop(0) |
167 patchlines.pop(0) |
168 |
168 |
169 ds = patch.diffstat(patchlines, git=opts.get('git')) |
169 ds = patch.diffstat(patchlines) |
170 if opts.get('diffstat'): |
170 if opts.get('diffstat'): |
171 body += ds + '\n\n' |
171 body += ds + '\n\n' |
172 |
172 |
173 addattachment = opts.get('attach') or opts.get('inline') |
173 addattachment = opts.get('attach') or opts.get('inline') |
174 if not addattachment or opts.get('body'): |
174 if not addattachment or opts.get('body'): |