diff options
author | Alexandru Macovei <alexnmaco@gmail.com> | 2022-10-18 14:37:20 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 13:37:20 +0200 |
commit | 216fad3140d5923ef78b2e4484e35f57326b6eaf (patch) | |
tree | 8504cbe7f90aae601be48bc6cffbc22a2518b795 /src/tabs | |
parent | 8604b331ae185e7a21aca29fed00729e0e7dbd4b (diff) |
Display tags and branches in the revlog (#1371)
* give tags a more distinctive appearance in the revlog
* store branches on commitlist, and display branch labels on head commits
Diffstat (limited to 'src/tabs')
-rw-r--r-- | src/tabs/revlog.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs index 710617ca..5443bc64 100644 --- a/src/tabs/revlog.rs +++ b/src/tabs/revlog.rs @@ -13,7 +13,7 @@ use crate::{ use anyhow::Result; use asyncgit::{ cached, - sync::{self, CommitId, RepoPathRef}, + sync::{self, get_branches_info, CommitId, RepoPathRef}, AsyncGitNotification, AsyncLog, AsyncTags, CommitFilesParams, FetchStatus, }; @@ -107,6 +107,11 @@ impl Revlog { self.branch_name.lookup().map(Some).unwrap_or(None), ); + self.list.set_branches(get_branches_info( + &self.repo.borrow(), + true, + )?); + if self.commit_details.is_visible() { let commit = self.selected_commit(); let tags = self.selected_commit_tags(&commit); |