Rename field for consistency
This commit is contained in:
parent
dca83eed55
commit
2be929ec94
2 changed files with 4 additions and 4 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue