{% extends "layout_repo.html" %} {% block page_title %}Compare · {% endblock %} {% block content %} {% let base = r.base() %}

Compare changes

Choose two branches to see what has changed or to open a pull request.

{{ crate::web::fmt::icon("git-compare")|safe }} ← {% if let Some(m) = view.mergeability %} {% match m %} {% when crate::git::Mergeability::Clean %}{{ crate::web::fmt::icon("check")|safe }} Able to merge. These branches can be automatically merged. {% when crate::git::Mergeability::Conflicts %}{{ crate::web::fmt::icon("x")|safe }} Can't automatically merge. You can still open the pull request. {% when crate::git::Mergeability::UpToDate %} {% endmatch %} {% endif %}
{% if let Some(notice) = view.notice %}
{{ crate::web::fmt::icon("git-compare")|safe }}

{{ notice }}

{% else %} {% if let Some(n) = view.existing %} {% else if view.can_open() %} {% if ctx.user.is_some() %}
{% if let Some(u) = ctx.user %}{{ crate::web::fmt::avatar(u.username, 40)|safe }}{% endif %}
{% else %} {% endif %} {% endif %}
{{ crate::web::fmt::icon("git-commit-horizontal")|safe }} {{ crate::web::fmt::plural(view.commits.len(), "commit") }} {% if let Some(d) = view.diff %} {{ crate::web::fmt::icon("file-text")|safe }} {{ crate::web::fmt::plural(d.files.len(), "file") }} changed {% endif %}
{% for c in view.commits %}
{{ crate::web::fmt::avatar(c.author_name, 20)|safe }} {{ c.author_name }} {{ c.summary }} {{ c.short_id }}
{% endfor %}
{% if let Some(diff) = view.diff %} {% let file_ref = crate::web::fmt::urlpath(view.head) %} {% include "partials/diff.html" %} {% endif %} {% endif %} {% endblock %}