Skip to content

Commit

Permalink
fix log not updating after branch switch
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst authored and IndianBoy42 committed Jun 4, 2024
1 parent 64bf440 commit 7adc9fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/components/commitlist.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ impl CommitList {
///
pub fn clear(&mut self) {
self.items.clear();
self.commits.clear();
}

///
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 7adc9fe

Please sign in to comment.