Rename field for consistency

This commit is contained in:
Joscha 2023-08-06 13:11:43 +02:00
parent dca83eed55
commit 2be929ec94
2 changed files with 4 additions and 4 deletions

View file

@ -11,14 +11,14 @@ use crate::{config::Config, db, somehow};
struct Commit {
hash: String,
description: String,
short: String,
reachable: i64,
}
impl Commit {
fn new(hash: String, message: &str, reachable: i64) -> Self {
Self {
description: db::format_commit_short(&hash, message),
short: db::format_commit_short(&hash, message),
hash,
reachable,
}

View file

@ -42,14 +42,14 @@ This commit can be reached from a tracked ref.
{% for commit in parents %}
<dt class="{% call r_class(commit.reachable) %}" title="{% call r_title(commit.reachable) %}">Parent:</dt>
<dd class="{% call r_class(commit.reachable) %}" title="{% call r_title(commit.reachable) %}">
<a href="{{ commit.hash }}">{{ commit.description }}</a>
<a href="{{ commit.hash }}">{{ commit.short }}</a>
</dd>
{% endfor %}
{% for commit in children %}
<dt class="{% call r_class(commit.reachable) %}" title="{% call r_title(commit.reachable) %}">Child:</dt>
<dd class="{% call r_class(commit.reachable) %}" title="{% call r_title(commit.reachable) %}">
<a href="{{ commit.hash }}">{{ commit.description }}</a>
<a href="{{ commit.hash }}">{{ commit.short }}</a>
</dd>
{% endfor %}
</dl>