Skip to content

"stg mail" does not consider the first patch in the series while generating the cover letter diffstats #104

@vlrpl

Description

@vlrpl

stg mail doesn't include the first patch in the series to generate diffstats in a cover letter
when %(diffstat)s is present.

This is more visible generating a cover letter for a single patch.

Using e.g. the following cover letter template:

$ cat cover.txt
From: A U Thor <author@example.com>
Subject: Diffstat Cover Test

A diffstat cover test.

%(diffstat)s

The resulting mbox:
$ stg mail -m --cover=cover.txt $(stg top)

has an empty %(diffstat)s section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions