From a0ec76f159ee3c0be17c7f01fb754a027af11e37 Mon Sep 17 00:00:00 2001 From: Timon Ensel Date: Mon, 10 Jun 2024 08:43:22 +0200 Subject: [PATCH] Change short commit-hash from last to first 8 chars --- src/core/commit.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/commit.cpp b/src/core/commit.cpp index f9a49fd..89a2761 100644 --- a/src/core/commit.cpp +++ b/src/core/commit.cpp @@ -136,7 +136,7 @@ ftxui::Element addCommLine(RenderLine lineType, // length adapted hash std::string commit_top_text = commit.hash; if (commit_top_text.size() > 8) { - commit_top_text = GAP_TREE_COMMITS + commit.hash.substr(commit.hash.size() - 8); + commit_top_text = GAP_TREE_COMMITS + commit.hash.substr(0, 8); } Element commit_top_text_element = text(commit_top_text); // highlighted / selected