{% extends "layout.html" %} {% import "utils.html" as utils with context %} {% block title %} Preparing patchset for {{repo.owner.canonical_name}}/{{repo.name}} - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block body %}
{{csrf_token()}} Select a branch {% for branch in branches[:2] %} {%- set branch_hash = branch[0] | hash -%} {{valid.summary("branch")}} {% endfor %} {% if any(branches[2:]) %}
More branches
{% endif %} Select the first commit Choose the earliest commit which you want to include in the patchset. You'll be able to trim commits off the top in the next step. {% for branch in branches[:2] %} {%- set branch_hash = branch[0] | hash -%} {%- set branch_quoted = branch[0] | url_quote -%}
{% if commits[branch[0]][-1].parents %} {% set show_commits = commits[branch[0]][:-1] %} {% else %} {% set show_commits = commits[branch[0]] %} {% endif %} {% for c in show_commits[::-1] %} {{valid.summary("branch-" + branch_quoted)}} {% endfor %}
{% if commits[branch[0]][-1].parents and (len(commits[branch[0]])-1) < 32 %} {# TODO: suggest request-pull for >32 commits (or less, tbh) #} Add more commits {{icon("caret-right")}} {% endif %}
{% endfor %}
{% endblock %} {% block repohead %} {% endblock %}