diff --git a/src/web/commit_hash.rs b/src/web/commit_hash.rs index c43eb7f..adbefb5 100644 --- a/src/web/commit_hash.rs +++ b/src/web/commit_hash.rs @@ -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, } diff --git a/templates/commit_hash.html b/templates/commit_hash.html index b7165a7..5251183 100644 --- a/templates/commit_hash.html +++ b/templates/commit_hash.html @@ -42,14 +42,14 @@ This commit can be reached from a tracked ref. {% for commit in parents %}
Parent:
- {{ commit.description }} + {{ commit.short }}
{% endfor %} {% for commit in children %}
Child:
- {{ commit.description }} + {{ commit.short }}
{% endfor %}