Skip to content

Commit

Permalink
Change short commit-hash from last to first 8 chars
Browse files Browse the repository at this point in the history
  • Loading branch information
forgottosave committed Jun 10, 2024
1 parent b9371fc commit a0ec76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/commit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0ec76f

Please sign in to comment.