Skip to content

Commit a0ec76f

Browse files
committed
Change short commit-hash from last to first 8 chars
1 parent b9371fc commit a0ec76f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/commit.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ ftxui::Element addCommLine(RenderLine lineType,
136136
// length adapted hash
137137
std::string commit_top_text = commit.hash;
138138
if (commit_top_text.size() > 8) {
139-
commit_top_text = GAP_TREE_COMMITS + commit.hash.substr(commit.hash.size() - 8);
139+
commit_top_text = GAP_TREE_COMMITS + commit.hash.substr(0, 8);
140140
}
141141
Element commit_top_text_element = text(commit_top_text);
142142
// highlighted / selected

0 commit comments

Comments
 (0)