{% extends "layout.html" %} {% import "utils.html" as utils with context %} {% block title %} Review patchset for {{repo.owner.canonical_name}}/{{repo.name}} - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block body %}

Review your patchset

The following emails are going to be sent on your behalf. To whom should they be sent?

{{csrf_token()}}
{{valid.summary('patchset_to')}} This is usually a mailing list, or the project maintainer(s). {% if readme %} Check {{readme}} for more info. {% endif %}
{{valid.summary('patchset_cc')}}
{# TODO: highlight the diff? #}

This is equivalent to the following git send-email command:

{# TODO: More concise send-email commands, e.g. use HEAD where appropriate #}
git config format.subjectPrefix "PATCH {{repo.name}}" # Only necessary once
git send-email {% if version != 1 %}-v{{version}} {% endif %}{% if cover_letter %}--cover-letter {% endif %}{% if start.parent_ids %}{{start.short_id}}^..{% else %}--root {% endif %}{{end.short_id}}
{% for email in emails %}

{{email["Subject"]}}


{%- for key, value in email.items() -%}
{{key}}: {{value}}
{% endfor %}
{{email.get_payload(decode=True).decode(errors='ignore')}}
{% endfor %}
{% endblock %}