Skip to content

Commit 8b71734

Browse files
committed
Document tuple used in CommitList.marked
1 parent 69fd7e6 commit 8b71734

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/commitlist.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ pub struct CommitList {
4545
items: ItemBatch,
4646
highlights: Option<Rc<IndexSet<CommitId>>>,
4747
commits: IndexSet<CommitId>,
48+
/// The marked commits.
49+
/// `self.marked[].0` holds the commit index into `self.items.items` - used for ordering the list.
50+
/// `self.marked[].1` is the commit id of the marked commit.
4851
marked: Vec<(usize, CommitId)>,
4952
scroll_state: (Instant, f32),
5053
tags: Option<Tags>,

0 commit comments

Comments
 (0)