diff --git a/CHANGELOG.md b/CHANGELOG.md index 85c95ade..354f3d4b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## Unreleased +### Fixes +* fix commit log not updating after branch switch ([#1862](https://github.com/extrawurst/gitui/issues/1862)) + ## [0.24.1] - 2023-08-30 ### Fixes diff --git a/src/components/commitlist.rs b/src/components/commitlist.rs index 0ab57619..2e8b80c3 100644 --- a/src/components/commitlist.rs +++ b/src/components/commitlist.rs @@ -95,6 +95,7 @@ impl CommitList { /// pub fn clear(&mut self) { self.items.clear(); + self.commits.clear(); } /// @@ -740,8 +741,6 @@ impl CommitList { let slice_end = want_min.saturating_add(SLICE_SIZE).min(commits); - log::info!("fetch_commits: {want_min}-{slice_end}",); - let commits = sync::get_commits_info( &self.repo.borrow(), &self.commits[want_min..slice_end],